From 57f41958e6e0f191d6e0c34d9e99bd768b12a638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roy?= Date: Fri, 28 Apr 2023 12:00:54 -0700 Subject: [PATCH] Add missing PRESET_MODE feature to BAF fans (#92200) --- homeassistant/components/baf/fan.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/baf/fan.py b/homeassistant/components/baf/fan.py index 360926363a5..a166c346f12 100644 --- a/homeassistant/components/baf/fan.py +++ b/homeassistant/components/baf/fan.py @@ -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