mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Log errors when loading yaml (#6257)
This commit is contained in:
@@ -428,7 +428,8 @@ def async_from_config_file(config_path: str,
|
||||
try:
|
||||
config_dict = yield from hass.loop.run_in_executor(
|
||||
None, conf_util.load_yaml_config_file, config_path)
|
||||
except HomeAssistantError:
|
||||
except HomeAssistantError as err:
|
||||
_LOGGER.error('Error loading %s: %s', config_path, err)
|
||||
return None
|
||||
finally:
|
||||
clear_secret_cache()
|
||||
|
||||
Reference in New Issue
Block a user