Add default_config component (#20799)
* Add default config component * Add default_config to default config * Fix comments
This commit is contained in:
1 parent
222c4ea6f3
commit
e59240fa00
7 files changed
+66
-47
No files matched your search
@@ -124,7 +124,7 @@ async def _async_process_config(hass, config, component):
|
||||
|
||||
scripts = []
|
||||
|
||||
for object_id, cfg in config[DOMAIN].items():
|
||||
for object_id, cfg in config.get(DOMAIN, {}).items():
|
||||
alias = cfg.get(CONF_ALIAS, object_id)
|
||||
script = ScriptEntity(hass, object_id, alias, cfg[CONF_SEQUENCE])
|
||||
scripts.append(script)
|
||||
|
||||
Reference in new issue
Block a user