Add EntityFeature enum to Humidifier (#69092)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user