Improve trace of template conditions (#49101)
* Improve trace of template conditions * Refactor * Fix wait_template trace * Update tests
This commit is contained in:
parent
106dc4d28a
commit
ff5fbea1fb
6 changed files with 60 additions and 17 deletions
|
@ -456,7 +456,7 @@ class _ScriptRun:
|
|||
wait_template.hass = self._hass
|
||||
|
||||
# check if condition already okay
|
||||
if condition.async_template(self._hass, wait_template, self._variables):
|
||||
if condition.async_template(self._hass, wait_template, self._variables, False):
|
||||
self._variables["wait"]["completed"] = True
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue