From f6023d39023e23e47a40c439b3df36512611cdbd Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 2 Dec 2026 15:39:39 +0100 Subject: [PATCH] Use the action field enums in nobo_hub (#196050) --- homeassistant/components/nobo_hub/climate.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/nobo_hub/climate.py b/homeassistant/components/nobo_hub/climate.py index 0dfe859d35d1..d2c6dc2cb497 100644 --- a/homeassistant/components/nobo_hub/climate.py +++ b/homeassistant/components/nobo_hub/climate.py @@ -5,14 +5,13 @@ from typing import Any, override from pynobo import PynoboError, nobo from homeassistant.components.climate import ( - ATTR_TARGET_TEMP_HIGH, - ATTR_TARGET_TEMP_LOW, PRESET_AWAY, PRESET_COMFORT, PRESET_ECO, PRESET_NONE, ClimateEntity, ClimateEntityFeature, + ClimateServiceArgument, HVACMode, ) from homeassistant.const import PRECISION_TENTHS, PRECISION_WHOLE, UnitOfTemperature @@ -156,9 +155,9 @@ class NoboZone(NoboBaseEntity, ClimateEntity): @override async def async_set_temperature(self, **kwargs: Any) -> None: """Set new target temperature.""" - if ATTR_TARGET_TEMP_LOW in kwargs: - low = round(kwargs[ATTR_TARGET_TEMP_LOW]) - high = round(kwargs[ATTR_TARGET_TEMP_HIGH]) + if ClimateServiceArgument.TARGET_TEMP_LOW in kwargs: + low = round(kwargs[ClimateServiceArgument.TARGET_TEMP_LOW]) + high = round(kwargs[ClimateServiceArgument.TARGET_TEMP_HIGH]) try: await self._nobo.async_update_zone( self._id, temp_comfort_c=high, temp_eco_c=low