diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py index ddc00c868b13..fb4aa3258507 100644 --- a/homeassistant/components/nexia/climate.py +++ b/homeassistant/components/nexia/climate.py @@ -17,14 +17,13 @@ from nexia.util import find_humidity_setpoint from nexia.zone import NexiaThermostatZone from homeassistant.components.climate import ( - ATTR_TARGET_TEMP_HIGH, - ATTR_TARGET_TEMP_LOW, ClimateEntity, ClimateEntityFeature, + ClimateServiceArgument, HVACAction, HVACMode, ) -from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature +from homeassistant.const import UnitOfTemperature from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback @@ -297,9 +296,9 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): @override async def async_set_temperature(self, **kwargs: Any) -> None: """Set target temperature.""" - new_heat_temp = kwargs.get(ATTR_TARGET_TEMP_LOW) - new_cool_temp = kwargs.get(ATTR_TARGET_TEMP_HIGH) - set_temp = kwargs.get(ATTR_TEMPERATURE) + new_heat_temp = kwargs.get(ClimateServiceArgument.TARGET_TEMP_LOW) + new_cool_temp = kwargs.get(ClimateServiceArgument.TARGET_TEMP_HIGH) + set_temp = kwargs.get(ClimateServiceArgument.TEMPERATURE) deadband = self._thermostat.get_deadband() cur_cool_temp = self._zone.get_cooling_setpoint()