Add missing PRESET_MODE feature to BAF fans (#92200)
parent
cff7829a8d
commit
57f41958e6
homeassistant/components/baf
|
@ -39,7 +39,11 @@ async def async_setup_entry(
|
||||||
class BAFFan(BAFEntity, FanEntity):
|
class BAFFan(BAFEntity, FanEntity):
|
||||||
"""BAF ceiling fan component."""
|
"""BAF ceiling fan component."""
|
||||||
|
|
||||||
_attr_supported_features = FanEntityFeature.SET_SPEED | FanEntityFeature.DIRECTION
|
_attr_supported_features = (
|
||||||
|
FanEntityFeature.SET_SPEED
|
||||||
|
| FanEntityFeature.DIRECTION
|
||||||
|
| FanEntityFeature.PRESET_MODE
|
||||||
|
)
|
||||||
_attr_preset_modes = [PRESET_MODE_AUTO]
|
_attr_preset_modes = [PRESET_MODE_AUTO]
|
||||||
_attr_speed_count = SPEED_COUNT
|
_attr_speed_count = SPEED_COUNT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue