Skip to content

Commit c8d368f

Browse files
authored
Merge pull request #2308 from xaviml/patch-1
fix(hassapi): fix constrain_input_select when not a list
2 parents db2949f + a0e3491 commit c8d368f

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
@@ -411,7 +411,7 @@ def constrain_input_select(self, value: str | Iterable[str]) -> bool:
411411
case str():
412412
constraints = [value]
413413

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

416416
for constraint in constraints:
417417
# using re.split allows for an arbitrary amount of whitespace after the comma

0 commit comments

Comments
 (0)