const.py (769B)
1 """Constants for the in-lite integration.""" 2 3 from __future__ import annotations 4 5 DOMAIN = "inlite" 6 7 # Config entry data keys 8 CONF_GARDEN_ID = "garden_id" 9 CONF_GARDEN_NAME = "garden_name" 10 CONF_CONFIRM = "confirm" 11 CONF_NETWORK_KEY = "network_key" 12 CONF_PASSWORD = "password" 13 CONF_TRANSFORMERS = "transformers" 14 15 # Options flow keys 16 CONF_SCAN_INTERVAL = "scan_interval" 17 CONF_IDLE_DISCONNECT = "idle_disconnect" 18 19 # Coordinator defaults 20 DEFAULT_SCAN_INTERVAL = 30 # seconds between BLE state polls 21 MIN_SCAN_INTERVAL = 10 22 MAX_SCAN_INTERVAL = 300 23 24 # BLE 25 BLE_LOCAL_NAME = "inlitebt" 26 27 # Connection management defaults 28 DEFAULT_IDLE_DISCONNECT_SECONDS = 3600 # 1 hour — keeps connection alive for OOB updates 29 MIN_IDLE_DISCONNECT_SECONDS = 60 30 MAX_IDLE_DISCONNECT_SECONDS = 7200