We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89a810a commit 0fb1f83Copy full SHA for 0fb1f83
1 file changed
plugwise/smile.py
@@ -337,7 +337,7 @@ async def set_schedule_state(
337
Used in HA Core to set the hvac_mode: in practice switch between schedule on - off.
338
"""
339
# Input checking
340
- if new_state not in (STATE_OFF, STATE_ON) or loc_id is None:
+ if new_state not in (STATE_OFF, STATE_ON):
341
raise PlugwiseError("Plugwise: invalid schedule state.")
342
if loc_id is None:
343
raise PlugwiseError(
0 commit comments