Options to not track wired clients (#25669)
This commit is contained in:
1 parent
a54ade1189
commit
93dfd613aa
4 files changed
+28
No files matched your search
@@ -30,6 +30,7 @@ from .const import (
|
||||
CONF_DETECTION_TIME,
|
||||
CONF_DONT_TRACK_CLIENTS,
|
||||
CONF_DONT_TRACK_DEVICES,
|
||||
CONF_DONT_TRACK_WIRED_CLIENTS,
|
||||
CONF_SITE_ID,
|
||||
CONF_SSID_FILTER,
|
||||
CONTROLLER_ID,
|
||||
@@ -178,6 +179,12 @@ def update_items(controller, async_add_entities, tracked):
|
||||
):
|
||||
continue
|
||||
|
||||
if (
|
||||
controller.unifi_config.get(CONF_DONT_TRACK_WIRED_CLIENTS, False)
|
||||
and client.is_wired
|
||||
):
|
||||
continue
|
||||
|
||||
tracked[client_id] = UniFiClientTracker(client, controller)
|
||||
new_tracked.append(tracked[client_id])
|
||||
LOGGER.debug(
|
||||
|
||||
Reference in new issue
Block a user