mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 11:33:11 -04:00
Use the action field enums in nexia (#196039)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user