Fix to allow Matter Fan percent setting to be null when FanMode is Auto (#167279)

Co-authored-by: Ludovic BOUÉ <132135057+lboue@users.noreply.github.com>
This commit is contained in:
Ludovic BOUÉ
2026-04-03 15:21:14 +02:00
committed by GitHub
co-authored by Ludovic BOUÉ
parent 6305ea8cf2
commit 72cd7ed178
+4
View File
@@ -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,