Rework tado component (#29246)
* Fix imports so it works in custom_components * Rework tado component * Code cleanup * Remove water_heater * Address pylint warnings * Remove water_heater from components * Raise PlatformNotReady when we couldn't connect * Revert PlatformNotReady since we are not a platform * Add debugging information * Add fallback setting * Import with relative path * Address race condition * Cleanup * Catch 422 Errors and log the real error * Use async_schedule_update_ha_state to update the entities * Forgot the True
This commit is contained in:
parent
92fd3e3ad5
commit
04b5d6c697
4 changed files with 345 additions and 420 deletions
18
homeassistant/components/tado/const.py
Normal file
18
homeassistant/components/tado/const.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
"""Constant values for the Tado component."""
|
||||
|
||||
# Configuration
|
||||
CONF_FALLBACK = "fallback"
|
||||
|
||||
# Types
|
||||
TYPE_AIR_CONDITIONING = "AIR_CONDITIONING"
|
||||
TYPE_HEATING = "HEATING"
|
||||
TYPE_HOT_WATER = "HOT_WATER"
|
||||
|
||||
# Base modes
|
||||
CONST_MODE_SMART_SCHEDULE = "SMART_SCHEDULE" # Use the schedule
|
||||
CONST_MODE_OFF = "OFF" # Switch off heating in a zone
|
||||
|
||||
# When we change the temperature setting, we need an overlay mode
|
||||
CONST_OVERLAY_TADO_MODE = "TADO_MODE" # wait until tado changes the mode automatic
|
||||
CONST_OVERLAY_MANUAL = "MANUAL" # the user has change the temperature or mode manually
|
||||
CONST_OVERLAY_TIMER = "TIMER" # the temperature will be reset after a timespan
|
Loading…
Add table
Add a link
Reference in a new issue