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

+3 -2
View File
@@ -97,8 +97,9 @@ class TemplateLock(LockEntity):
self._state_template = value_template
self._availability_template = availability_template
self._state_entities = entity_ids
self._command_lock = Script(hass, command_lock)
self._command_unlock = Script(hass, command_unlock)
domain = __name__.split(".")[-2]
self._command_lock = Script(hass, command_lock, name, domain)
self._command_unlock = Script(hass, command_unlock, name, domain)
self._optimistic = optimistic
self._available = True
self._unique_id = unique_id