Home Assistant Unofficial Reference
2024.12.1
const.py
Go to the documentation of this file.
1
"""Constants for the Generic Thermostat helper."""
2
3
from
homeassistant.components.climate
import
(
4
PRESET_ACTIVITY,
5
PRESET_AWAY,
6
PRESET_COMFORT,
7
PRESET_ECO,
8
PRESET_HOME,
9
PRESET_SLEEP,
10
)
11
from
homeassistant.const
import
Platform
12
13
DOMAIN =
"generic_thermostat"
14
15
PLATFORMS = [Platform.CLIMATE]
16
17
CONF_AC_MODE =
"ac_mode"
18
CONF_COLD_TOLERANCE =
"cold_tolerance"
19
CONF_HEATER =
"heater"
20
CONF_HOT_TOLERANCE =
"hot_tolerance"
21
CONF_MIN_DUR =
"min_cycle_duration"
22
CONF_PRESETS = {
23
p: f
"{p}_temp"
24
for
p
in
(
25
PRESET_AWAY,
26
PRESET_COMFORT,
27
PRESET_ECO,
28
PRESET_HOME,
29
PRESET_SLEEP,
30
PRESET_ACTIVITY,
31
)
32
}
33
CONF_SENSOR =
"target_sensor"
34
DEFAULT_TOLERANCE = 0.3
homeassistant.components.climate
Definition:
__init__.py:1
homeassistant.const
Definition:
const.py:1
core
homeassistant
components
generic_thermostat
const.py
Generated by
1.9.1