From 6306829bf8eec1db0583a4b2a7f5eefcc20146d5 Mon Sep 17 00:00:00 2001 From: Sam Jongenelen Date: Mon, 23 May 2022 15:43:14 +0200 Subject: [PATCH] Added logging of the Filter ID --- custom_components/mikrotik_router/mikrotik_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/mikrotik_router/mikrotik_controller.py b/custom_components/mikrotik_router/mikrotik_controller.py index e4acd11..8e2bd37 100644 --- a/custom_components/mikrotik_router/mikrotik_controller.py +++ b/custom_components/mikrotik_router/mikrotik_controller.py @@ -1171,9 +1171,10 @@ class MikrotikControllerData: if self.data["filter"][uid]["uniq-id"] not in self.filter_removed: self.filter_removed[self.data["filter"][uid]["uniq-id"]] = 1 _LOGGER.error( - "Mikrotik %s duplicate Filter rule %s, entity will be unavailable.", + "Mikrotik %s duplicate Filter rule %s (ID %s), entity will be unavailable.", self.host, self.data["filter"][uid]["name"], + self.data["filter"][uid][".id"], ) del self.data["filter"][uid]