Skip to content

Commit

Permalink
check for overrides before cancelling to fix issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
msp1974 committed Oct 9, 2023
1 parent 225a68d commit 2b2e697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aioWiserHeatAPI/hot_water.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ async def cancel_overrides(self):
Cancel all overrides of the hot water
return: boolean
"""
return await self._send_command({"RequestOverride": {"Type": "None"}})
if self.is_override:
return await self._send_command({"RequestOverride": {"Type": "None"}})

async def override_state(self, state: str) -> bool:
"""
Expand Down

0 comments on commit 2b2e697

Please sign in to comment.