Allow calling scripts from Alexa
This commit is contained in:
parent
612a017bc6
commit
4a5411a957
2 changed files with 5 additions and 5 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue