diff --git a/custom_components/bayernluefter/fan.py b/custom_components/bayernluefter/fan.py index 57dbee7..d8899ea 100644 --- a/custom_components/bayernluefter/fan.py +++ b/custom_components/bayernluefter/fan.py @@ -57,7 +57,13 @@ class BayernluefterFan(BayernluefterEntity, FanEntity): # These fan specific attributes are not (yet) part of FanEntityDescription _attr_speed_count = int_states_in_range(FAN_SPEED_RANGE) - _attr_supported_features = FanEntityFeature.SET_SPEED | FanEntityFeature.PRESET_MODE + _attr_supported_features = ( + FanEntityFeature.TURN_ON + | FanEntityFeature.TURN_OFF + | FanEntityFeature.SET_SPEED + | FanEntityFeature.PRESET_MODE + ) + _enable_turn_on_off_backwards_compatibility = False # _attr_preset_modes = [e.value for e in FanMode] def __init__( diff --git a/hacs.json b/hacs.json index 3af6e15..2a751e2 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,6 @@ { "name": "Bayernlüfter", "render_readme": true, - "homeassistant": "2023.9.0", + "homeassistant": "2024.8.0", "country": "DE" }