Move config_per_platform and extract_domain_configs to config.py (#104989)
This commit is contained in:
parent
53becaa976
commit
95f7db1970
14 changed files with 138 additions and 51 deletions
|
@ -13,7 +13,6 @@ from homeassistant.exceptions import HomeAssistantError
|
|||
from homeassistant.loader import async_get_integration
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from . import config_per_platform
|
||||
from .entity import Entity
|
||||
from .entity_component import EntityComponent
|
||||
from .entity_platform import EntityPlatform, async_get_platforms
|
||||
|
@ -69,7 +68,7 @@ async def _resetup_platform(
|
|||
|
||||
root_config: dict[str, list[ConfigType]] = {platform_domain: []}
|
||||
# Extract only the config for template, ignore the rest.
|
||||
for p_type, p_config in config_per_platform(conf, platform_domain):
|
||||
for p_type, p_config in conf_util.config_per_platform(conf, platform_domain):
|
||||
if p_type != integration_domain:
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue