Skip to content

Commit 89b2290

Browse files
committed
Add missing constant imports
1 parent 75287ab commit 89b2290

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
MODULES,
1616
NONE,
1717
SMILES,
18+
STATE_OFF,
19+
STATE_ON,
1820
STATUS,
1921
SYSTEM,
2022
GwEntityData,
@@ -410,7 +412,7 @@ async def set_switch_state(
410412
- False when switched to state off,
411413
- the unchanged state when the switch is for instance locked.
412414
"""
413-
if state not in (STATE_ON, STATE_OFF):
415+
if state not in (STATE_OFF, STATE_ON):
414416
raise PlugwiseError("Invalid state supplied to set_switch_state")
415417

416418
try:

0 commit comments

Comments
 (0)