1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00
ha-core/homeassistant/components/velbus/const.py
Maikel Punie 00377a926e
Fix velbus climate (#58408)
* Initial work on velbus climate fixes home-assistant/core#58382

* Clean up the code, fixed the preset_mode

* Fix climate havc mode return value
2021-10-26 10:53:13 +02:00

26 lines
518 B
Python

"""Const for Velbus."""
from typing import Final
from homeassistant.components.climate.const import (
PRESET_AWAY,
PRESET_COMFORT,
PRESET_ECO,
PRESET_HOME,
)
DOMAIN: Final = "velbus"
CONF_INTERFACE: Final = "interface"
CONF_MEMO_TEXT: Final = "memo_text"
SERVICE_SCAN: Final = "scan"
SERVICE_SYNC: Final = "sync_clock"
SERVICE_SET_MEMO_TEXT: Final = "set_memo_text"
PRESET_MODES: Final = {
PRESET_ECO: "safe",
PRESET_AWAY: "night",
PRESET_HOME: "day",
PRESET_COMFORT: "comfort",
}