From a2c0aeebdc44abbb4c3160af67e43ded46aef3cd Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 2 Dec 2026 15:40:28 +0100 Subject: [PATCH] Use the action field enums in oem (#196053) --- homeassistant/components/oem/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/oem/climate.py b/homeassistant/components/oem/climate.py index 9e2dc5fdaba6..e8c09baea2e4 100644 --- a/homeassistant/components/oem/climate.py +++ b/homeassistant/components/oem/climate.py @@ -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: