1
mirror of https://github.com/home-assistant/core synced 2024-07-27 18:58:57 +02:00

Revert "airzone: climate: update max/min temps"

This reverts commit 988194d486.
This commit is contained in:
Álvaro Fernández Rojas 2023-05-19 19:31:01 +02:00
parent 988194d486
commit e4ead24f71
2 changed files with 5 additions and 5 deletions

View File

@ -9,6 +9,8 @@ from aioairzone.const import (
API_ON,
API_SET_POINT,
API_SPEED,
AZD_ABS_TEMP_MAX,
AZD_ABS_TEMP_MIN,
AZD_ACTION,
AZD_HUMIDITY,
AZD_MASTER,
@ -19,8 +21,6 @@ from aioairzone.const import (
AZD_SPEED,
AZD_SPEEDS,
AZD_TEMP,
AZD_TEMP_MAX,
AZD_TEMP_MIN,
AZD_TEMP_SET,
AZD_TEMP_UNIT,
AZD_ZONES,
@ -124,6 +124,8 @@ class AirzoneClimate(AirzoneZoneEntity, ClimateEntity):
self._attr_unique_id = f"{self._attr_unique_id}_{system_zone_id}"
self._attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
self._attr_target_temperature_step = API_TEMPERATURE_STEP
self._attr_max_temp = self.get_airzone_value(AZD_ABS_TEMP_MAX)
self._attr_min_temp = self.get_airzone_value(AZD_ABS_TEMP_MIN)
self._attr_temperature_unit = TEMP_UNIT_LIB_TO_HASS[
self.get_airzone_value(AZD_TEMP_UNIT)
]
@ -224,8 +226,6 @@ class AirzoneClimate(AirzoneZoneEntity, ClimateEntity):
]
else:
self._attr_hvac_mode = HVACMode.OFF
self._attr_max_temp = self.get_airzone_value(AZD_TEMP_MAX)
self._attr_min_temp = self.get_airzone_value(AZD_TEMP_MIN)
self._attr_target_temperature = self.get_airzone_value(AZD_TEMP_SET)
if self.supported_features & ClimateEntityFeature.FAN_MODE:
self._attr_fan_mode = self._speeds.get(self.get_airzone_value(AZD_SPEED))

View File

@ -203,7 +203,7 @@ async def test_airzone_create_climates(hass: HomeAssistant) -> None:
HVACMode.OFF,
]
assert state.attributes.get(ATTR_MAX_TEMP) == 32.2
assert state.attributes.get(ATTR_MIN_TEMP) == 17.8
assert state.attributes.get(ATTR_MIN_TEMP) == 10.0
assert state.attributes.get(ATTR_TARGET_TEMP_STEP) == API_TEMPERATURE_STEP
assert state.attributes.get(ATTR_TEMPERATURE) == 22.8