Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the AVM FRITZ!SmartHome integration."""
2 
3 from __future__ import annotations
4 
5 import logging
6 from typing import Final
7 
8 from homeassistant.const import Platform
9 
10 ATTR_STATE_BATTERY_LOW: Final = "battery_low"
11 ATTR_STATE_HOLIDAY_MODE: Final = "holiday_mode"
12 ATTR_STATE_SUMMER_MODE: Final = "summer_mode"
13 ATTR_STATE_WINDOW_OPEN: Final = "window_open"
14 
15 COLOR_MODE: Final = "1"
16 COLOR_TEMP_MODE: Final = "4"
17 
18 DEFAULT_HOST: Final = "fritz.box"
19 DEFAULT_USERNAME: Final = "admin"
20 
21 DOMAIN: Final = "fritzbox"
22 
23 LOGGER: Final[logging.Logger] = logging.getLogger(__package__)
24 
25 PLATFORMS: Final[list[Platform]] = [
26  Platform.BINARY_SENSOR,
27  Platform.BUTTON,
28  Platform.CLIMATE,
29  Platform.COVER,
30  Platform.LIGHT,
31  Platform.SENSOR,
32  Platform.SWITCH,
33 ]