diff --git a/homeassistant/components/palazzetti/climate.py b/homeassistant/components/palazzetti/climate.py index 821a672a6c4c..307a804d681b 100644 --- a/homeassistant/components/palazzetti/climate.py +++ b/homeassistant/components/palazzetti/climate.py @@ -7,10 +7,11 @@ from pypalazzetti.exceptions import CommunicationError, ValidationError from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, + ClimateServiceArgument, HVACAction, HVACMode, ) -from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature +from homeassistant.const import UnitOfTemperature from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError, ServiceValidationError from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback @@ -109,7 +110,7 @@ class PalazzettiClimateEntity(PalazzettiEntity, ClimateEntity): @override async def async_set_temperature(self, **kwargs: Any) -> None: """Set new temperature.""" - temperature = int(kwargs[ATTR_TEMPERATURE]) + temperature = int(kwargs[ClimateServiceArgument.TEMPERATURE]) try: await self.coordinator.client.set_target_temperature(temperature) except CommunicationError as err: