Add wait_for_trigger script action (#38075)
* Add wait_for_trigger script action * Add tests * Change script integration to use config validator
This commit is contained in:
parent
c1ed584f2d
commit
76ead858cf
10 changed files with 288 additions and 53 deletions
|
@ -86,7 +86,9 @@ async def async_attach_trigger(
|
|||
value_template.extract_entities(),
|
||||
)
|
||||
|
||||
unsub = async_track_template(hass, value_template, template_listener)
|
||||
unsub = async_track_template(
|
||||
hass, value_template, template_listener, automation_info["variables"]
|
||||
)
|
||||
|
||||
@callback
|
||||
def async_remove():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue