Use the action field enums in nexia (#196039)

This commit is contained in:
epenet
2026-12-02 09:07:11 -05:00
committed by GitHub
parent 2e224c780f
commit b903b7e4b9
+5 -6
View File
@@ -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()