Skip to content

Commit

Permalink
Fix on/off state on fan (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohNan authored Aug 23, 2024
1 parent b81209d commit 8824147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/wellbeing/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def async_set_preset_mode(self, preset_mode: str) -> None:

@property
def is_on(self):
return self.preset_mode is not WorkMode.OFF
return self.preset_mode != WorkMode.OFF

async def async_turn_on(self, percentage: int | None = None, preset_mode: str | None = None, **kwargs) -> None:
self._preset_mode = self.get_appliance.work_mode_from_preset_mode(preset_mode)
Expand Down

0 comments on commit 8824147

Please sign in to comment.