Skip to content

Commit

Permalink
Add feature flags to fan due to upcoming deprecation (#158)
Browse files Browse the repository at this point in the history
* Add feature flags to fan due to upcoming deprecation

* Update hacs.json
  • Loading branch information
JohNan authored Nov 14, 2024
1 parent dc3a440 commit 7a62874
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion custom_components/wellbeing/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
_LOGGER: logging.Logger = logging.getLogger(__package__)

SUPPORTED_FEATURES = (
FanEntityFeature.SET_SPEED | FanEntityFeature.PRESET_MODE
FanEntityFeature.SET_SPEED
| FanEntityFeature.PRESET_MODE
| FanEntityFeature.TURN_OFF
| FanEntityFeature.TURN_ON
)


Expand All @@ -38,6 +41,7 @@ async def async_setup_entry(hass, entry, async_add_devices):

class WellbeingFan(WellbeingEntity, FanEntity):
"""wellbeing Sensor class."""
_enable_turn_on_off_backwards_compatibility = False

def __init__(self, coordinator: WellbeingDataUpdateCoordinator, config_entry, pnc_id, entity_type, entity_attr):
super().__init__(coordinator, config_entry, pnc_id, entity_type, entity_attr)
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Electrolux Wellbeing",
"hacs": "1.6.0",
"homeassistant": "2024.6.0"
"homeassistant": "2024.8.0"
}

0 comments on commit 7a62874

Please sign in to comment.