Skip to content

Commit

Permalink
Don't set fan speed when work mode is Auto (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohNan authored Aug 23, 2024
1 parent 8824147 commit c998b1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/wellbeing/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ async def async_turn_on(self, percentage: int | None = None, preset_mode: str |
self.async_write_ha_state()

await self.api.set_work_mode(self.pnc_id, self._preset_mode)
await self.api.set_fan_speed(self.pnc_id, self._speed)

if self._preset_mode != WorkMode.AUTO:
await self.api.set_fan_speed(self.pnc_id, self._speed)

await asyncio.sleep(10)
await self.coordinator.async_request_refresh()

Expand Down

0 comments on commit c998b1b

Please sign in to comment.