diff --git a/homeassistant/components/livisi/climate.py b/homeassistant/components/livisi/climate.py index 3a0a219d94340e..952363650d6994 100644 --- a/homeassistant/components/livisi/climate.py +++ b/homeassistant/components/livisi/climate.py @@ -3,6 +3,8 @@ from typing import Any +from aiolivisi.const import CAPABILITY_CONFIG + from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, @@ -65,8 +67,6 @@ class LivisiClimate(LivisiEntity, ClimateEntity): _attr_hvac_mode = HVACMode.HEAT _attr_temperature_unit = UnitOfTemperature.CELSIUS _attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE - _attr_target_temperature_high = MAX_TEMPERATURE - _attr_target_temperature_low = MIN_TEMPERATURE def __init__( self, @@ -83,6 +83,10 @@ def __init__( self._temperature_capability = self.capabilities["RoomTemperature"] self._humidity_capability = self.capabilities["RoomHumidity"] + config = device.get(CAPABILITY_CONFIG, {}).get("RoomSetpoint", {}) + self._attr_max_temp = config.get("maxTemperature", MAX_TEMPERATURE) + self._attr_min_temp = config.get("minTemperature", MIN_TEMPERATURE) + async def async_set_temperature(self, **kwargs: Any) -> None: """Set new target temperature.""" response = await self.aio_livisi.async_vrcc_set_temperature(