Skip to content

Commit 0fb1f83

Browse files
committed
Remove double code
1 parent 89a810a commit 0fb1f83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugwise/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ async def set_schedule_state(
337337
Used in HA Core to set the hvac_mode: in practice switch between schedule on - off.
338338
"""
339339
# Input checking
340-
if new_state not in (STATE_OFF, STATE_ON) or loc_id is None:
340+
if new_state not in (STATE_OFF, STATE_ON):
341341
raise PlugwiseError("Plugwise: invalid schedule state.")
342342
if loc_id is None:
343343
raise PlugwiseError(

0 commit comments

Comments
 (0)