Move config_per_platform and extract_domain_configs to config.py (#104989)

This commit is contained in:
Erik Montnemery 2023-12-04 12:48:49 +01:00 committed by GitHub
parent 53becaa976
commit 95f7db1970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 138 additions and 51 deletions

View file

@ -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