ConfigType and async_setup/setup type hint improvements (#54739)
This commit is contained in:
parent
dcb2a211e5
commit
939fde0a50
63 changed files with 114 additions and 71 deletions
|
@ -44,6 +44,7 @@ import homeassistant.helpers.config_validation as cv
|
|||
from homeassistant.helpers.entityfilter import BASE_FILTER_SCHEMA, FILTER_SCHEMA
|
||||
from homeassistant.helpers.reload import async_integration_yaml_config
|
||||
from homeassistant.helpers.service import async_extract_referenced_entity_ids
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
from homeassistant.loader import IntegrationNotFound, async_get_integration
|
||||
|
||||
from . import ( # noqa: F401
|
||||
|
@ -187,7 +188,7 @@ def _async_get_entries_by_name(current_entries):
|
|||
return {entry.data.get(CONF_NAME, BRIDGE_NAME): entry for entry in current_entries}
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: dict):
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the HomeKit from yaml."""
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue