Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for Hive."""
2 
3 from homeassistant.const import Platform
4 
5 ATTR_MODE = "mode"
6 ATTR_TIME_PERIOD = "time_period"
7 ATTR_ONOFF = "on_off"
8 CONF_CODE = "2fa"
9 CONF_DEVICE_NAME = "device_name"
10 CONFIG_ENTRY_VERSION = 1
11 DEFAULT_NAME = "Hive"
12 DOMAIN = "hive"
13 PLATFORMS = [
14  Platform.ALARM_CONTROL_PANEL,
15  Platform.BINARY_SENSOR,
16  Platform.CLIMATE,
17  Platform.LIGHT,
18  Platform.SENSOR,
19  Platform.SWITCH,
20  Platform.WATER_HEATER,
21 ]
22 PLATFORM_LOOKUP = {
23  Platform.ALARM_CONTROL_PANEL: "alarm_control_panel",
24  Platform.BINARY_SENSOR: "binary_sensor",
25  Platform.CLIMATE: "climate",
26  Platform.LIGHT: "light",
27  Platform.SENSOR: "sensor",
28  Platform.SWITCH: "switch",
29  Platform.WATER_HEATER: "water_heater",
30 }
31 SERVICE_BOOST_HOT_WATER = "boost_hot_water"
32 SERVICE_BOOST_HEATING_ON = "boost_heating_on"
33 SERVICE_BOOST_HEATING_OFF = "boost_heating_off"
34 WATER_HEATER_MODES = ["on", "off"]