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"]: