Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Android Debug Bridge component constants."""
2 
3 DOMAIN = "androidtv"
4 
5 CONF_ADB_SERVER_IP = "adb_server_ip"
6 CONF_ADB_SERVER_PORT = "adb_server_port"
7 CONF_ADBKEY = "adbkey"
8 CONF_APPS = "apps"
9 CONF_EXCLUDE_UNNAMED_APPS = "exclude_unnamed_apps"
10 CONF_GET_SOURCES = "get_sources"
11 CONF_SCREENCAP = "screencap"
12 CONF_SCREENCAP_INTERVAL = "screencap_interval"
13 CONF_STATE_DETECTION_RULES = "state_detection_rules"
14 CONF_TURN_OFF_COMMAND = "turn_off_command"
15 CONF_TURN_ON_COMMAND = "turn_on_command"
16 
17 DEFAULT_ADB_SERVER_PORT = 5037
18 DEFAULT_DEVICE_CLASS = "auto"
19 DEFAULT_EXCLUDE_UNNAMED_APPS = False
20 DEFAULT_GET_SOURCES = True
21 DEFAULT_PORT = 5555
22 DEFAULT_SCREENCAP_INTERVAL = 5
23 
24 DEVICE_ANDROIDTV = "androidtv"
25 DEVICE_FIRETV = "firetv"
26 DEVICE_CLASSES = [DEFAULT_DEVICE_CLASS, DEVICE_ANDROIDTV, DEVICE_FIRETV]
27 
28 PROP_ETHMAC = "ethmac"
29 PROP_SERIALNO = "serialno"
30 PROP_WIFIMAC = "wifimac"
31 
32 SIGNAL_CONFIG_ENTITY = "androidtv_config"