mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
* Ensure we have valid config AFTER merging packages #13015 * also fix packages
This commit is contained in:
committed by
Paulus Schoutsen
parent
7ea7fc8d38
commit
40485a6e89
@@ -326,6 +326,11 @@ def check_ha_config_file(config_dir):
|
||||
config, core_config.get(CONF_PACKAGES, {}), _pack_error)
|
||||
del core_config[CONF_PACKAGES]
|
||||
|
||||
# Ensure we have no None values after merge
|
||||
for key, value in config.items():
|
||||
if not value:
|
||||
config[key] = {}
|
||||
|
||||
# Filter out repeating config sections
|
||||
components = set(key.split(' ')[0] for key in config.keys())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user