Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
natekspencer committed Nov 1, 2024
1 parent 6b8587c commit 4e95cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybalboa/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def set_state(self, state: int | HeatMode) -> bool:
return False
if self._state == state:
return True
i = 2 if self.state == HeatMode.READY_IN_REST and state == HeatMode.READY else 1 # type: ignore
i = 2 if self.state == HeatMode.READY_IN_REST and state == HeatMode.READY else 1
for _ in range(i):
await self._client.send_message(MessageType.TOGGLE_STATE, self._code)
return True
Expand Down

0 comments on commit 4e95cb8

Please sign in to comment.