mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add missing PRESET_MODE feature to BAF fans (#92200)
This commit is contained in:
parent
cff7829a8d
commit
57f41958e6
@ -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…
x
Reference in New Issue
Block a user