Use the action field enums in melissa (#195971)

This commit is contained in:
epenet
2026-12-02 12:19:16 +00:00
committed by GitHub
parent a2bbe092c1
commit de3b9365c3
+3 -2
View File
@@ -10,9 +10,10 @@ from homeassistant.components.climate import (
FAN_MEDIUM,
ClimateEntity,
ClimateEntityFeature,
ClimateServiceArgument,
HVACMode,
)
from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, UnitOfTemperature
from homeassistant.const import PRECISION_WHOLE, UnitOfTemperature
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
@@ -129,7 +130,7 @@ class MelissaClimate(ClimateEntity):
@override
async def async_set_temperature(self, **kwargs: Any) -> None:
"""Set new target temperature."""
temp = kwargs.get(ATTR_TEMPERATURE)
temp = kwargs.get(ClimateServiceArgument.TEMPERATURE)
await self.async_send({self._api.TEMP: temp})
@override