Add Hive config flow (#47300)
* Add Hive UI * Fix tests and review updates * Slimmed down config_flow * Fix tests * Updated Services.yaml with extra ui attributes * cleanup config flow * Update config entry * Remove ATTR_AVAILABLE * Fix Re-Auth Test * Added more tests. * Update tests
This commit is contained in:
parent
1aa4fd4cc9
commit
cfeb8eb06a
18 changed files with 1165 additions and 201 deletions
20
homeassistant/components/hive/const.py
Normal file
20
homeassistant/components/hive/const.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
"""Constants for Hive."""
|
||||
ATTR_MODE = "mode"
|
||||
ATTR_TIME_PERIOD = "time_period"
|
||||
ATTR_ONOFF = "on_off"
|
||||
CONF_CODE = "2fa"
|
||||
CONFIG_ENTRY_VERSION = 1
|
||||
DEFAULT_NAME = "Hive"
|
||||
DOMAIN = "hive"
|
||||
PLATFORMS = ["binary_sensor", "climate", "light", "sensor", "switch", "water_heater"]
|
||||
PLATFORM_LOOKUP = {
|
||||
"binary_sensor": "binary_sensor",
|
||||
"climate": "climate",
|
||||
"light": "light",
|
||||
"sensor": "sensor",
|
||||
"switch": "switch",
|
||||
"water_heater": "water_heater",
|
||||
}
|
||||
SERVICE_BOOST_HOT_WATER = "boost_hot_water"
|
||||
SERVICE_BOOST_HEATING = "boost_heating"
|
||||
WATER_HEATER_MODES = ["on", "off"]
|
Loading…
Add table
Add a link
Reference in a new issue