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

+3 -1
View File
@@ -23,6 +23,7 @@ from homeassistant.helpers.script import Script
DOMAIN = "script"
ENTITY_ID_FORMAT = DOMAIN + '.{}'
GROUP_NAME_ALL_SCRIPTS = 'all scripts'
DEPENDENCIES = ["group"]
CONF_SEQUENCE = "sequence"
@@ -73,7 +74,8 @@ def toggle(hass, entity_id):
def setup(hass, config):
"""Load the scripts from the configuration."""
component = EntityComponent(_LOGGER, DOMAIN, hass)
component = EntityComponent(_LOGGER, DOMAIN, hass,
group_name=GROUP_NAME_ALL_SCRIPTS)
def service_handler(service):
"""Execute a service call to script.<script name>."""