From 711a89f7b806de4bb64a50beda014016738fb697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Fri, 3 Apr 2026 15:21:14 +0200 Subject: [PATCH] Fix to allow Matter Fan percent setting to be null when FanMode is Auto (#167279) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ludovic BOUÉ <132135057+lboue@users.noreply.github.com> --- homeassistant/components/matter/fan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/matter/fan.py b/homeassistant/components/matter/fan.py index 823451113e0e..6195030a7405 100644 --- a/homeassistant/components/matter/fan.py +++ b/homeassistant/components/matter/fan.py @@ -323,7 +323,11 @@ DISCOVERY_SCHEMAS = [ required_attributes=( clusters.FanControl.Attributes.FanMode, clusters.FanControl.Attributes.PercentCurrent, + clusters.FanControl.Attributes.PercentSetting, ), + # PercentSetting SHALL be null when FanMode is Auto (spec 4.4.6.3), + # so allow null values to not block discovery in that state. + allow_none_value=True, optional_attributes=( clusters.FanControl.Attributes.SpeedSetting, clusters.FanControl.Attributes.RockSetting,