mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 03:51:12 +02:00
Add default_config component (#20799)
* Add default config component * Add default_config to default config * Fix comments
This commit is contained in:
@@ -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