45 lines
899 B
Python
45 lines
899 B
Python
"""Provides the constants needed for component."""
|
|
|
|
from enum import IntFlag, StrEnum
|
|
|
|
MODE_NORMAL = "normal"
|
|
MODE_ECO = "eco"
|
|
MODE_AWAY = "away"
|
|
MODE_BOOST = "boost"
|
|
MODE_COMFORT = "comfort"
|
|
MODE_HOME = "home"
|
|
MODE_SLEEP = "sleep"
|
|
MODE_AUTO = "auto"
|
|
MODE_BABY = "baby"
|
|
|
|
|
|
class HumidifierAction(StrEnum):
|
|
"""Actions for humidifier devices."""
|
|
|
|
HUMIDIFYING = "humidifying"
|
|
DRYING = "drying"
|
|
IDLE = "idle"
|
|
OFF = "off"
|
|
|
|
|
|
ATTR_ACTION = "action"
|
|
ATTR_AVAILABLE_MODES = "available_modes"
|
|
ATTR_CURRENT_HUMIDITY = "current_humidity"
|
|
ATTR_HUMIDITY = "humidity"
|
|
ATTR_MAX_HUMIDITY = "max_humidity"
|
|
ATTR_MIN_HUMIDITY = "min_humidity"
|
|
|
|
DEFAULT_MIN_HUMIDITY = 0
|
|
DEFAULT_MAX_HUMIDITY = 100
|
|
|
|
DOMAIN = "humidifier"
|
|
|
|
SERVICE_SET_MODE = "set_mode"
|
|
SERVICE_SET_HUMIDITY = "set_humidity"
|
|
|
|
|
|
class HumidifierEntityFeature(IntFlag):
|
|
"""Supported features of the humidifier entity."""
|
|
|
|
MODES = 1
|