We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75287ab commit 89b2290Copy full SHA for 89b2290
1 file changed
plugwise/__init__.py
@@ -15,6 +15,8 @@
15
MODULES,
16
NONE,
17
SMILES,
18
+ STATE_OFF,
19
+ STATE_ON,
20
STATUS,
21
SYSTEM,
22
GwEntityData,
@@ -410,7 +412,7 @@ async def set_switch_state(
410
412
- False when switched to state off,
411
413
- the unchanged state when the switch is for instance locked.
414
"""
- if state not in (STATE_ON, STATE_OFF):
415
+ if state not in (STATE_OFF, STATE_ON):
416
raise PlugwiseError("Invalid state supplied to set_switch_state")
417
418
try:
0 commit comments