Move core config functionality to its own module (#129065)

* Move core config functionality to its own module

* Adjust test
This commit is contained in:
Erik Montnemery
2024-10-24 13:34:51 +02:00
committed by GitHub
parent cd4aa8ccd6
commit 3e62c6ae2f
53 changed files with 1308 additions and 1284 deletions

View File

@ -70,6 +70,7 @@ from .const import (
REQUIRED_NEXT_PYTHON_VER,
SIGNAL_BOOTSTRAP_INTEGRATIONS,
)
from .core_config import async_process_ha_core_config
from .exceptions import HomeAssistantError
from .helpers import (
area_registry,
@ -479,7 +480,7 @@ async def async_from_config_dict(
core_config = config.get(core.DOMAIN, {})
try:
await conf_util.async_process_ha_core_config(hass, core_config)
await async_process_ha_core_config(hass, core_config)
except vol.Invalid as config_err:
conf_util.async_log_schema_error(config_err, core.DOMAIN, core_config, hass)
async_notify_setup_error(hass, core.DOMAIN)