diff --git a/custom_components/mikrotik_router/mikrotik_controller.py b/custom_components/mikrotik_router/mikrotik_controller.py index 02a3c30..4f66573 100644 --- a/custom_components/mikrotik_router/mikrotik_controller.py +++ b/custom_components/mikrotik_router/mikrotik_controller.py @@ -543,6 +543,9 @@ class MikrotikControllerData: if not self.option_track_network_hosts: return + if "test" not in self.data["access"]: + return + try: await asyncio.wait_for(self.lock_ping.acquire(), timeout=3) except Exception: @@ -728,6 +731,7 @@ class MikrotikControllerData: "write" not in self.data["access"] or "policy" not in self.data["access"] or "reboot" not in self.data["access"] + or "test" not in self.data["access"] ): _LOGGER.warning( "Mikrotik %s user %s does not have sufficient access rights. Integration functionality will be limited.",