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.
This commit is contained in:
K7ZVX 2026-05-05 04:40:12 +00:00
commit ac2bb87473

View file

@ -291,7 +291,7 @@ class MeshReporter:
region_coverage = {} region_coverage = {}
for n in nodes_with_gw: 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" region = health_node.region if health_node else "Unlocated"
if not region: if not region:
region = "Unlocated" region = "Unlocated"