From a7c00d8fb3784dc2fe7da5a37bde49d725bc821f Mon Sep 17 00:00:00 2001 From: Tomaae <23486452+tomaae@users.noreply.github.com> Date: Wed, 18 Jan 2023 23:51:22 +0100 Subject: [PATCH] fixed typo #265 --- custom_components/mikrotik_router/mikrotik_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mikrotik_router/mikrotik_controller.py b/custom_components/mikrotik_router/mikrotik_controller.py index 8495c25..9c94b51 100644 --- a/custom_components/mikrotik_router/mikrotik_controller.py +++ b/custom_components/mikrotik_router/mikrotik_controller.py @@ -2102,7 +2102,7 @@ class MikrotikControllerData: # Add hosts from DHCP for uid, vals in self.data["dhcp"].items(): - if not self.data["host"][uid]["source"]["enabled"]: + if not vals["enabled"]: continue if uid not in self.data["host"]: