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:
Phil Bruckner 2020-08-21 04:38:25 -05:00 committed by GitHub
parent c1ed584f2d
commit 76ead858cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 288 additions and 53 deletions

View file

@ -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():