Skip to content

Commit 8762343

Browse files
committed
swapped case structure
1 parent 038292a commit 8762343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appdaemon/plugins/hass/hassapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ def constrain_input_boolean(self, value: str | Iterable[str]) -> bool:
393393
state. Desired state defaults to ``on``
394394
"""
395395
match value:
396-
case Iterable():
397-
constraints = value if isinstance(value, list) else list(value)
398396
case str():
399397
constraints = [value]
398+
case Iterable():
399+
constraints = value if isinstance(value, list) else list(value)
400400

401401
assert isinstance(value, list) and all(isinstance(v, str) for v in value)
402402

0 commit comments

Comments
 (0)