Skip to content

Commit

Permalink
Update fan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
disforw authored Dec 20, 2024
1 parent 82775ba commit 8384794
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/goveelife/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def _init_platform_specific(self, **kwargs):

for cap in capabilities:
if cap['type'] == 'devices.capabilities.on_off':
self._attr_supported_features |= FanEntityFeature.TURN_ON
for option in cap['parameters']['options']:
if option['name'] == 'on':
self._state_mapping[option['value']] = STATE_ON
Expand Down

0 comments on commit 8384794

Please sign in to comment.