From b04055d41eb6963fd8ec4907216aec67dcf330a2 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 1 Dec 2026 07:52:35 +0100 Subject: [PATCH] Use the action field enums in cielo_home (#195724) --- homeassistant/components/cielo_home/climate.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/cielo_home/climate.py b/homeassistant/components/cielo_home/climate.py index f95cf42bf436..fad2ded0450b 100644 --- a/homeassistant/components/cielo_home/climate.py +++ b/homeassistant/components/cielo_home/climate.py @@ -7,13 +7,11 @@ from typing import Any, Concatenate, override from cieloconnectapi.exceptions import AuthenticationError from homeassistant.components.climate import ( - ATTR_TARGET_TEMP_HIGH, - ATTR_TARGET_TEMP_LOW, ClimateEntity, ClimateEntityFeature, + ClimateServiceArgument, HVACMode, ) -from homeassistant.const import ATTR_TEMPERATURE from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, HomeAssistantError from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback @@ -253,12 +251,12 @@ class CieloClimate(CieloDeviceEntity, ClimateEntity): if self.hvac_mode == HVACMode.HEAT_COOL: return await self.client.async_set_temperature( self.native_temperature_unit, - target_temp_low=kwargs.get(ATTR_TARGET_TEMP_LOW), - target_temp_high=kwargs.get(ATTR_TARGET_TEMP_HIGH), + target_temp_low=kwargs.get(ClimateServiceArgument.TARGET_TEMP_LOW), + target_temp_high=kwargs.get(ClimateServiceArgument.TARGET_TEMP_HIGH), ) return await self.client.async_set_temperature( self.native_temperature_unit, - temperature=kwargs.get(ATTR_TEMPERATURE), + temperature=kwargs.get(ClimateServiceArgument.TEMPERATURE), ) @async_handle_api_call