Add automations and scripts to group.all_automations and group.all_scripts (#3664)

* Add automations to group.all_automations

* Add scripts to group.all_scripts
This commit is contained in:
Daniel Høyer Iversen authored and Paulus Schoutsen committed 2016-10-04 21:20:48 -07:00
1 parent 0bf8bb62ad
commit d2d393feb5
4 files changed
+15 -2

No files matched your search

@@ -31,6 +31,8 @@ ENTITY_ID_FORMAT = DOMAIN + '.{}'
DEPENDENCIES = ['group']
GROUP_NAME_ALL_AUTOMATIONS = 'all automations'
CONF_ALIAS = 'alias'
CONF_HIDE_ENTITY = 'hide_entity'
@@ -139,7 +141,8 @@ def reload(hass):
def setup(hass, config):
"""Setup the automation."""
component = EntityComponent(_LOGGER, DOMAIN, hass)
component = EntityComponent(_LOGGER, DOMAIN, hass,
group_name=GROUP_NAME_ALL_AUTOMATIONS)
success = run_coroutine_threadsafe(
_async_process_config(hass, config, component), hass.loop).result()