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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user