1
mirror of https://github.com/home-assistant/core synced 2024-07-12 07:21:24 +02:00

Switch Sensibo to ClimateEntityFeature (#69279)

This commit is contained in:
Daniel Hjelseth Høyer 2022-04-04 18:15:01 +02:00 committed by GitHub
parent b369616aad
commit 4b89b2f5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,7 @@ from homeassistant.components.climate.const import (
HVAC_MODE_HEAT,
HVAC_MODE_HEAT_COOL,
HVAC_MODE_OFF,
SUPPORT_FAN_MODE,
SUPPORT_SWING_MODE,
SUPPORT_TARGET_TEMPERATURE,
ClimateEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
@ -36,9 +34,9 @@ from .entity import SensiboDeviceBaseEntity
SERVICE_ASSUME_STATE = "assume_state"
FIELD_TO_FLAG = {
"fanLevel": SUPPORT_FAN_MODE,
"swing": SUPPORT_SWING_MODE,
"targetTemperature": SUPPORT_TARGET_TEMPERATURE,
"fanLevel": ClimateEntityFeature.FAN_MODE,
"swing": ClimateEntityFeature.SWING_MODE,
"targetTemperature": ClimateEntityFeature.TARGET_TEMPERATURE,
}
SENSIBO_TO_HA = {