Improve trace of template conditions (#49101)

* Improve trace of template conditions

* Refactor

* Fix wait_template trace

* Update tests
This commit is contained in:
Erik Montnemery 2021-04-12 20:22:28 +02:00 committed by GitHub
parent 106dc4d28a
commit ff5fbea1fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 60 additions and 17 deletions

View file

@ -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