* Move ignoring logic to entity registry enabled default * Handle config to option import better * Properly enable and disable entity registry entries on changes from config entry options * Fix balloobs comments * Fix some tests * Fix tests * Simplify updating disable on entities * Simplify device tracker update function * Local entity disabled replaced on rebase * Only alter entities with changed options * Proper tracking of changed options * Back to straightforward updating of disabled
32 lines
833 B
Python
32 lines
833 B
Python
"""Constants for the UniFi component."""
|
|
import logging
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
DOMAIN = "unifi"
|
|
|
|
CONTROLLER_ID = "{host}-{site}"
|
|
|
|
CONF_CONTROLLER = "controller"
|
|
CONF_SITE_ID = "site"
|
|
|
|
UNIFI_CONFIG = "unifi_config"
|
|
|
|
CONF_BLOCK_CLIENT = "block_client"
|
|
CONF_DETECTION_TIME = "detection_time"
|
|
CONF_TRACK_CLIENTS = "track_clients"
|
|
CONF_TRACK_DEVICES = "track_devices"
|
|
CONF_TRACK_WIRED_CLIENTS = "track_wired_clients"
|
|
CONF_SSID_FILTER = "ssid_filter"
|
|
|
|
CONF_DONT_TRACK_CLIENTS = "dont_track_clients"
|
|
CONF_DONT_TRACK_DEVICES = "dont_track_devices"
|
|
CONF_DONT_TRACK_WIRED_CLIENTS = "dont_track_wired_clients"
|
|
|
|
DEFAULT_BLOCK_CLIENTS = []
|
|
DEFAULT_TRACK_CLIENTS = True
|
|
DEFAULT_TRACK_DEVICES = True
|
|
DEFAULT_TRACK_WIRED_CLIENTS = True
|
|
DEFAULT_DETECTION_TIME = 300
|
|
DEFAULT_SSID_FILTER = []
|
|
|
|
ATTR_MANUFACTURER = "Ubiquiti Networks"
|