From caeebdcbbf388f4a5361e6b124b337cd7614a5ee Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 2 Dec 2026 16:04:12 +0100 Subject: [PATCH] Use the action field enums in palazzetti (#196062) --- homeassistant/components/palazzetti/climate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: