From ac2bb8747347db02d8856f571e1bcdbdd038bf9b Mon Sep 17 00:00:00 2001 From: K7ZVX Date: Tue, 5 May 2026 04:40:12 +0000 Subject: [PATCH] fix: Coverage breakdown now uses str(node_num) for health node lookup Health engine stores node IDs as decimal strings, but UnifiedNode.node_num is an integer. The lookup health.nodes.get(n.node_num) was failing, causing all nodes to show as Unlocated. Fixed by converting to string first. --- meshai/mesh_reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshai/mesh_reporter.py b/meshai/mesh_reporter.py index 672c465..28e0dce 100644 --- a/meshai/mesh_reporter.py +++ b/meshai/mesh_reporter.py @@ -291,7 +291,7 @@ class MeshReporter: region_coverage = {} for n in nodes_with_gw: - health_node = health.nodes.get(n.node_num) + health_node = health.nodes.get(str(n.node_num)) region = health_node.region if health_node else "Unlocated" if not region: region = "Unlocated"