Add missing PRESET_MODE feature to BAF fans (#92200)

This commit is contained in:
Jean-François Roy
2023-04-28 21:42:15 +02:00
committed by Franck Nijhof
parent 1f6dbe96f6
commit faa8f38fa8
+5 -1
View File
@@ -39,7 +39,11 @@ async def async_setup_entry(
class BAFFan(BAFEntity, FanEntity):
"""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_speed_count = SPEED_COUNT