mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-10 09:24:31 +02:00
do not create device tracker for wlan interface
This commit is contained in:
parent
8cf278be64
commit
99d6d7c43b
1 changed files with 8 additions and 0 deletions
|
@ -116,6 +116,14 @@ def update_items(inst, config_entry, mikrotik_controller, async_add_entities, tr
|
|||
[MikrotikControllerPortDeviceTracker, MikrotikControllerHostDeviceTracker],
|
||||
):
|
||||
for uid in mikrotik_controller.data[sid]:
|
||||
|
||||
# No device tracker for wlan
|
||||
if (
|
||||
sid == "interface"
|
||||
and mikrotik_controller.data[sid][uid]["type"] == "wlan"
|
||||
):
|
||||
continue
|
||||
|
||||
if (
|
||||
not config_entry.options.get(CONF_TRACK_HOSTS, DEFAULT_TRACK_HOSTS)
|
||||
and sid == "host"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue