Skip to content

Commit 033d52b

Browse files
committed
fixed input_boolean assertion
1 parent 43bb46e commit 033d52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appdaemon/plugins/hass/hassapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def constrain_input_boolean(self, value: str | Iterable[str]) -> bool:
384384
case Iterable():
385385
constraints = value if isinstance(value, list) else list(value)
386386

387-
assert isinstance(value, list) and all(isinstance(v, str) for v in value)
387+
assert isinstance(constraints, list) and all(isinstance(v, str) for v in constraints)
388388

389389
for constraint in constraints:
390390
parts = re.split(r',\s*', constraint)

0 commit comments

Comments
 (0)