Fix check config packages key error (#15840)
* Fix packages deletion in check_config script * The config key for packages is not present if core config validation failed. We need to do a safe dict deletion using dict.pop. * Add check_config test for bad core config
This commit is contained in:
1 parent
45452e510c
commit
07840f5397
2 files changed
+18
-1
No files matched your search
@@ -325,7 +325,7 @@ def check_ha_config_file(hass):
|
||||
# Merge packages
|
||||
merge_packages_config(
|
||||
hass, config, core_config.get(CONF_PACKAGES, {}), _pack_error)
|
||||
del core_config[CONF_PACKAGES]
|
||||
core_config.pop(CONF_PACKAGES, None)
|
||||
|
||||
# Ensure we have no None values after merge
|
||||
for key, value in config.items():
|
||||
|
||||
Reference in new issue
Block a user