diff --git a/homeassistant/components/huum/climate.py b/homeassistant/components/huum/climate.py index e56839da35ca..288def2208df 100644 --- a/homeassistant/components/huum/climate.py +++ b/homeassistant/components/huum/climate.py @@ -7,9 +7,10 @@ from huum.const import SaunaStatus from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, + ClimateServiceArgument, HVACMode, ) -from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, UnitOfTemperature +from homeassistant.const import PRECISION_WHOLE, UnitOfTemperature from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback @@ -104,7 +105,7 @@ class HuumDevice(HuumBaseEntity, ClimateEntity): @huum_exception_handler async def async_set_temperature(self, **kwargs: Any) -> None: """Set new target temperature.""" - temperature = kwargs.get(ATTR_TEMPERATURE) + temperature = kwargs.get(ClimateServiceArgument.TEMPERATURE) if temperature is None or self.hvac_mode != HVACMode.HEAT: return temperature = int(temperature)