Add EntityFeature enum to Humidifier (#69092)

This commit is contained in:
Franck Nijhof
2022-04-01 20:10:52 +02:00
committed by GitHub
parent 325a260cfd
commit 02dbd617b9
8 changed files with 27 additions and 15 deletions

View File

@@ -1,4 +1,6 @@
"""Provides the constants needed for component."""
from enum import IntEnum
MODE_NORMAL = "normal"
MODE_ECO = "eco"
MODE_AWAY = "away"
@@ -27,4 +29,13 @@ DEVICE_CLASS_DEHUMIDIFIER = "dehumidifier"
SERVICE_SET_MODE = "set_mode"
SERVICE_SET_HUMIDITY = "set_humidity"
class HumidifierEntityFeature(IntEnum):
"""Supported features of the alarm control panel entity."""
MODES = 1
# The SUPPORT_MODES constant is deprecated as of Home Assistant 2022.5.
# Please use the HumidifierEntityFeature enum instead.
SUPPORT_MODES = 1