Skip to content

Commit

Permalink
Add feature flags to fan entity (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuolis authored Dec 15, 2024
1 parent 41c4491 commit 20e8397
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/brink_ventilation/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from homeassistant.components.fan import (
DOMAIN,
FanEntity,
SUPPORT_SET_SPEED
FanEntityFeature
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
Expand Down Expand Up @@ -75,9 +75,9 @@ def unique_id(self):

@property
def supported_features(self):
"""Return supported features."""
return SUPPORT_SET_SPEED
"""Flag supported features."""
return FanEntityFeature.TURN_OFF | FanEntityFeature.TURN_ON | FanEntityFeature.SET_SPEED

@property
def is_on(self):
"""If the fan currently is on or off."""
Expand Down

0 comments on commit 20e8397

Please sign in to comment.