Use the action field enums in oem (#196053)

This commit is contained in:
epenet
2026-12-02 09:40:28 -05:00
committed by GitHub
parent 401fcf6a5c
commit a2c0aeebdc
+2 -2
View File
@@ -10,11 +10,11 @@ from homeassistant.components.climate import (
PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA,
ClimateEntity,
ClimateEntityFeature,
ClimateServiceArgument,
HVACAction,
HVACMode,
)
from homeassistant.const import (
ATTR_TEMPERATURE,
CONF_HOST,
CONF_NAME,
CONF_PASSWORD,
@@ -117,7 +117,7 @@ class ThermostatDevice(ClimateEntity):
@override
def set_temperature(self, **kwargs: Any) -> None:
"""Set the temperature."""
temp = kwargs.get(ATTR_TEMPERATURE)
temp = kwargs.get(ClimateServiceArgument.TEMPERATURE)
self.thermostat.setpoint = temp
def update(self) -> None: