From cae4e1ff7c4aad4b58b219b1af7f4cb648f26a0b Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Mon, 31 May 2021 18:57:27 +0200 Subject: [PATCH] Display network address in router as hex. https://github.com/Koenkk/zigbee2mqtt/discussions/7603 --- lib/extension/networkMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension/networkMap.js b/lib/extension/networkMap.js index b322583f3..4558395ee 100644 --- a/lib/extension/networkMap.js +++ b/lib/extension/networkMap.js @@ -132,7 +132,7 @@ class NetworkMap extends Extension { (!e.routes.length) ? 'penwidth=0.5, ' : 'penwidth=2, '; const lineWeight = (!e.routes.length) ? `weight=0, color="${colors.line.inactive}", ` : `weight=1, color="${colors.line.active}", `; - const textRoutes = e.routes.map((r) => r.destinationAddress); + const textRoutes = e.routes.map((r) => utils.toNetworkAddressHex(r.destinationAddress)); const lineLabels = (!e.routes.length) ? `label="${e.linkquality}"` : `label="${e.linkquality} (routes: ${textRoutes.join(',')})"`; text += ` "${node.ieeeAddr}" -> "${e.target.ieeeAddr}"`;