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