Skip to content

Commit

Permalink
fixed improper value of the on mode set the power switch
Browse files Browse the repository at this point in the history
  • Loading branch information
litinoveweedle committed May 17, 2024
1 parent f8ecaf8 commit 59e1efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/smartir/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ async def _async_power_sensor_changed(
and self._last_on_operation is not None
):
self._hvac_mode = self._last_on_operation
else:
self._hvac_mode = STATE_ON
elif len(self._operation_modes) > 1:
self._hvac_mode = self._operation_modes[1]
await self._async_update_hvac_action()
elif new_state.state == STATE_OFF:
self._on_by_remote = False
Expand Down

0 comments on commit 59e1efc

Please sign in to comment.