From 4e9ec820828e132713e17e0d4cf3adad9ef53f0d Mon Sep 17 00:00:00 2001 From: Vadym Holoveichuk Date: Fri, 13 Oct 2023 15:09:35 +0300 Subject: [PATCH] Fix Setpoint in Matter climate platform (#101929) fix matter max setpoint --- homeassistant/components/matter/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/matter/climate.py b/homeassistant/components/matter/climate.py index 6da88533edc..44e5d30fec4 100644 --- a/homeassistant/components/matter/climate.py +++ b/homeassistant/components/matter/climate.py @@ -250,9 +250,9 @@ class MatterClimate(MatterEntity, ClimateEntity): self._attr_min_temp = DEFAULT_MIN_TEMP # update max_temp if self._attr_hvac_mode in (HVACMode.COOL, HVACMode.HEAT_COOL): - attribute = clusters.Thermostat.Attributes.AbsMaxHeatSetpointLimit - else: attribute = clusters.Thermostat.Attributes.AbsMaxCoolSetpointLimit + else: + attribute = clusters.Thermostat.Attributes.AbsMaxHeatSetpointLimit if (value := self._get_temperature_in_degrees(attribute)) is not None: self._attr_max_temp = value else: