mirror of
https://github.com/meshtastic/python.git
synced 2026-01-15 11:18:05 -05:00
Show unknown nodes in a fashion similar to the web UI. Fixes #504
This commit is contained in:
@@ -152,13 +152,13 @@ class MeshInterface:
|
||||
)
|
||||
|
||||
rows = []
|
||||
if self.nodes:
|
||||
if self.nodesByNum:
|
||||
logging.debug(f"self.nodes:{self.nodes}")
|
||||
for node in self.nodes.values():
|
||||
for node in self.nodesByNum.values():
|
||||
if not includeSelf and node["num"] == self.localNode.nodeNum:
|
||||
continue
|
||||
|
||||
row = {"N": 0}
|
||||
row = {"N": 0, "User": f"UNK: {node['num']}", "ID": f"!{node['num']:x}"}
|
||||
|
||||
user = node.get("user")
|
||||
if user:
|
||||
|
||||
Reference in New Issue
Block a user