From 41d9776c1645d052954940282fd47e2d57125597 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 9 Feb 2024 15:07:22 +0100 Subject: [PATCH] Fix for leading zero mismatch in fabric check (#544) --- matter_server/server/device_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index e0e85515..bd8b4cb1 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -1168,7 +1168,7 @@ def _on_mdns_service_state_change( return if service_type == MDNS_TYPE_OPERATIONAL_NODE: name = name.lower() - if not name.startswith(self.fabric_id_hex): + if self.fabric_id_hex not in name: # filter out messages that are not for our fabric return LOGGER.debug("Received %s MDNS event for %s", state_change, name)