From 7b47f55098d41f6d4e732ea81eaf34abaf2cfb1d Mon Sep 17 00:00:00 2001 From: RSd108 Date: Wed, 31 Mar 2021 09:23:27 +0200 Subject: [PATCH] Incorrect id being sent through to the api --- custom_components/mikrotik_router/mikrotikapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mikrotik_router/mikrotikapi.py b/custom_components/mikrotik_router/mikrotikapi.py index 07e93ae..c32a8cb 100644 --- a/custom_components/mikrotik_router/mikrotikapi.py +++ b/custom_components/mikrotik_router/mikrotikapi.py @@ -346,7 +346,7 @@ class MikrotikAPI: ) return True - params = {".id": tmp[".id"]} + params = {".id": entry_found} self.lock.acquire() try: tuple(response(command, **params))