Fix disabled condition within an automation action (#87213)
fixes undefined
This commit is contained in:
parent
11cb6b131f
commit
e40a9822f5
2 changed files with 40 additions and 1 deletions
|
@ -757,7 +757,7 @@ class _ScriptRun:
|
|||
with trace_path(condition_path):
|
||||
for idx, cond in enumerate(conditions):
|
||||
with trace_path(str(idx)):
|
||||
if not cond(hass, variables):
|
||||
if cond(hass, variables) is False:
|
||||
return False
|
||||
except exceptions.ConditionError as ex:
|
||||
_LOGGER.warning("Error in '%s[%s]' evaluation: %s", name, idx, ex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue