Fix Setpoint in Matter climate platform (#101929)
fix matter max setpoint
This commit is contained in:
parent
53e97fee0e
commit
4e9ec82082
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue