Use the action field enums in myneomitis (#196022)

This commit is contained in:
epenet
2026-12-02 09:38:35 -05:00
committed by GitHub
parent cfb25ea53d
commit fdcde06cd0
@@ -14,9 +14,10 @@ from pyaxencoapi import (
from homeassistant.components.climate import (
ClimateEntity,
ClimateEntityFeature,
ClimateServiceArgument,
HVACMode,
)
from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature
from homeassistant.const import UnitOfTemperature
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import device_registry as dr
@@ -206,7 +207,7 @@ class MyNeoClimate(ClimateEntity):
@override
async def async_set_temperature(self, **kwargs: Any) -> None:
"""Set the target temperature for the climate entity."""
temperature = kwargs.get(ATTR_TEMPERATURE)
temperature = kwargs.get(ClimateServiceArgument.TEMPERATURE)
if temperature is None:
return