mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Set Netatmo max default temperature (#58718)
This commit is contained in:
parent
e38f3e447c
commit
f94bbf351d
@ -232,6 +232,7 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
|
||||
if self._model == NA_THERM:
|
||||
self._operation_list.append(HVAC_MODE_OFF)
|
||||
|
||||
self._attr_max_temp = DEFAULT_MAX_TEMP
|
||||
self._attr_unique_id = f"{self._id}-{self._model}"
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
@ -446,7 +447,7 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
|
||||
if (temp := kwargs.get(ATTR_TEMPERATURE)) is None:
|
||||
return
|
||||
await self._home_status.async_set_room_thermpoint(
|
||||
self._id, STATE_NETATMO_MANUAL, temp
|
||||
self._id, STATE_NETATMO_MANUAL, min(temp, DEFAULT_MAX_TEMP)
|
||||
)
|
||||
|
||||
self.async_write_ha_state()
|
||||
|
Loading…
x
Reference in New Issue
Block a user