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

Refactor config.async_log_exception (#104034)

* Refactor config.async_log_exception

* Improve test coverage

* Make functions public
This commit is contained in:
Erik Montnemery
2023-11-15 19:09:49 +01:00
committed by GitHub
parent c132900b92
commit 5b37096b5f
9 changed files with 173 additions and 44 deletions

View File

@@ -292,7 +292,7 @@ async def async_from_config_dict(
try:
await conf_util.async_process_ha_core_config(hass, core_config)
except vol.Invalid as config_err:
conf_util.async_log_exception(config_err, "homeassistant", core_config, hass)
conf_util.async_log_schema_error(config_err, "homeassistant", core_config, hass)
return None
except HomeAssistantError:
_LOGGER.error(