1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Allow calling scripts from Alexa

This commit is contained in:
Paulus Schoutsen
2016-04-22 05:30:30 -04:00
parent 612a017bc6
commit 4a5411a957
2 changed files with 5 additions and 5 deletions

View File

@@ -20,9 +20,9 @@ CONF_EVENT_DATA = "event_data"
CONF_DELAY = "delay"
def call_from_config(hass, config):
def call_from_config(hass, config, variables=None):
"""Call a script based on a config entry."""
Script(hass, config).run()
Script(hass, config).run(variables)
class Script():