Update script helper constructor parameters (#38763)
Add domain and make it and name required. Add optional running_description.
This commit is contained in:
1 parent
fbf44b37a9
commit
716fa63e73
20 files changed
+194
-100
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user