Update script helper constructor parameters (#38763)

Add domain and make it and name required.

Add optional running_description.
This commit is contained in:
Phil Bruckner authored and GitHub committed 2020-08-12 11:39:05 -05:00
1 parent fbf44b37a9
commit 716fa63e73
20 files changed
+194 -100

No files matched your search

@@ -55,7 +55,7 @@ async def async_setup(hass, config):
for intent_type, conf in intents.items():
if CONF_ACTION in conf:
conf[CONF_ACTION] = script.Script(
hass, conf[CONF_ACTION], f"Intent Script {intent_type}"
hass, conf[CONF_ACTION], f"Intent Script {intent_type}", DOMAIN
)
intent.async_register(hass, ScriptIntentHandler(intent_type, conf))