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