Wait_template - support for 'trigger.entity_id' and data_template values (#9807)
* *Added support for use of 'trigger.entity_id' and service->data_template->script in wait_template * * Fixed style violations * * Fixed regular expression (_RE_GET_POSSIBLE_ENTITIES) * * combined 'extract_entities' and 'extract_entities_with_variables' * fixed regular expression * * Added first test for extract_entities_with_variables * * Added Unittests (tests/helpers/test_template.py test_extract_entities_with_variables) * * Added Unittests (tests/helpers/test_script.py test_wait_template_variables) * * Added Unittests (tests/components/automation/test_template.py test_wait_template_with_trigger) * * Added Unittests (tests/components/automation/test_state.py test_wait_template_with_trigger) * * Added Unittests (tests/components/automation/test_numeric_state.py test_wait_template_with_trigger) * * Fixed style violations * * Fixed style violations * * Fixed style violations * * Fixed style violations * * Fixed style violations * * Fixed style violations * * Updated regular expression and delete whitespaces
This commit is contained in:
parent
c33b179fb8
commit
be5c0b2d92
8 changed files with 192 additions and 10 deletions
|
@ -129,7 +129,7 @@ class Script():
|
|||
self.hass.async_add_job(self.async_run(variables))
|
||||
|
||||
self._async_listener.append(async_track_template(
|
||||
self.hass, wait_template, async_script_wait))
|
||||
self.hass, wait_template, async_script_wait, variables))
|
||||
|
||||
self._cur = cur + 1
|
||||
if self._change_listener:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue