Add config flow and device registry to fritzbox integration (#31240)
* add config flow * fix pylint * update lib * Update config_flow.py * remote devices layer in config * add default host * avoid double setups of entities * remove async_setup_platform * store entities in hass.data * pass fritz connection together with config_entry * fritz connections try no4 (or is it even more) * fix comments * add unloading * fixed comments * Update config_flow.py * Update const.py * Update config_flow.py * Update __init__.py * Update config_flow.py * Update __init__.py * Update __init__.py * Update config_flow.py * Update __init__.py * Update __init__.py * Update __init__.py * Update config_flow.py * add init tests * test unloading * add switch tests * add sensor tests * add climate tests * test target temperature * mock config to package * comments * test binary sensor state * add config flow tests * comments * add missing tests * minor * remove string title * deprecate yaml * don't change yaml * get devices async * minor * add devices again * comments fixed * unique_id fixes * fix patches * Fix schema Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
2123f6f133
commit
c87ecf0ff6
22 changed files with 1403 additions and 271 deletions
25
homeassistant/components/fritzbox/const.py
Normal file
25
homeassistant/components/fritzbox/const.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
"""Constants for the AVM Fritz!Box integration."""
|
||||
import logging
|
||||
|
||||
ATTR_STATE_BATTERY_LOW = "battery_low"
|
||||
ATTR_STATE_DEVICE_LOCKED = "device_locked"
|
||||
ATTR_STATE_HOLIDAY_MODE = "holiday_mode"
|
||||
ATTR_STATE_LOCKED = "locked"
|
||||
ATTR_STATE_SUMMER_MODE = "summer_mode"
|
||||
ATTR_STATE_WINDOW_OPEN = "window_open"
|
||||
|
||||
ATTR_TEMPERATURE_UNIT = "temperature_unit"
|
||||
|
||||
ATTR_TOTAL_CONSUMPTION = "total_consumption"
|
||||
ATTR_TOTAL_CONSUMPTION_UNIT = "total_consumption_unit"
|
||||
|
||||
CONF_CONNECTIONS = "connections"
|
||||
|
||||
DEFAULT_HOST = "fritz.box"
|
||||
DEFAULT_USERNAME = "admin"
|
||||
|
||||
DOMAIN = "fritzbox"
|
||||
|
||||
LOGGER = logging.getLogger(__package__)
|
||||
|
||||
PLATFORMS = ["binary_sensor", "climate", "switch", "sensor"]
|
Loading…
Add table
Add a link
Reference in a new issue