1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-21 19:39:06 +00:00
Files
core/homeassistant/components/ecovacs/const.py
2025-10-28 13:22:40 +01:00

48 lines
975 B
Python

"""Ecovacs constants."""
from enum import StrEnum
from deebot_client.commands import StationAction
from deebot_client.events import LifeSpan
DOMAIN = "ecovacs"
CONF_CONTINENT = "continent"
CONF_OVERRIDE_REST_URL = "override_rest_url"
CONF_OVERRIDE_MQTT_URL = "override_mqtt_url"
CONF_VERIFY_MQTT_CERTIFICATE = "verify_mqtt_certificate"
SUPPORTED_LIFESPANS = (
LifeSpan.AIR_FRESHENER,
LifeSpan.BLADE,
LifeSpan.BRUSH,
LifeSpan.DUST_BAG,
LifeSpan.FILTER,
LifeSpan.HAND_FILTER,
LifeSpan.LENS_BRUSH,
LifeSpan.ROUND_MOP,
LifeSpan.SIDE_BRUSH,
LifeSpan.STATION_FILTER,
LifeSpan.UNIT_CARE,
LifeSpan.UV_SANITIZER,
)
SUPPORTED_STATION_ACTIONS = (
StationAction.CLEAN_BASE,
StationAction.DRY_MOP,
StationAction.EMPTY_DUSTBIN,
)
LEGACY_SUPPORTED_LIFESPANS = (
"main_brush",
"side_brush",
"filter",
)
class InstanceMode(StrEnum):
"""Instance mode."""
CLOUD = "cloud"
SELF_HOSTED = "self_hosted"