1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Humanize core config errors in check_config helper (#103635)

This commit is contained in:
Erik Montnemery
2023-11-08 10:15:27 +01:00
committed by GitHub
parent 40dc6d8191
commit cc5eda76d3
2 changed files with 8 additions and 2 deletions

View File

@@ -151,7 +151,9 @@ async def async_check_ha_config_file( # noqa: C901
core_config = CORE_CONFIG_SCHEMA(core_config)
result[CONF_CORE] = core_config
except vol.Invalid as err:
result.add_error(err, CONF_CORE, core_config)
result.add_error(
_format_config_error(err, CONF_CORE, core_config)[0], CONF_CORE, core_config
)
core_config = {}
# Merge packages