pull/13033/head
Johann Kellerman 2018-03-10 01:52:21 +02:00 committed by Paulus Schoutsen
parent 34c694c20e
commit 8f807a3006
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@ def async_from_config_dict(config: Dict[str, Any],
yield from hass.async_add_job(loader.prepare, hass)
# Make a copy because we are mutating it.
config = OrderedDict(config)
new_config = OrderedDict()
for key, value in config.items():
new_config[key] = value or {}
config = new_config
# Merge packages
conf_util.merge_packages_config(