Add owner to showInfo()

This commit is contained in:
Tim Gunter committed 2021-04-10 02:46:15 -07:00
1 parent 1447965ceb
commit 4b6f3c0976
1 file changed
+4 -2
+4 -2
View File
@@ -162,10 +162,12 @@ class MeshInterface:
def showInfo(self):
"""Show human readable summary about this object"""
print(f"My info: {stripnl(MessageToJson(self.myInfo))}")
print(f"Owner: {self.getLongName()} ({self.getShortName()})")
print(f"\nMy info: {stripnl(MessageToJson(self.myInfo))}")
print("\nNodes in mesh:")
for n in self.nodes.values():
print(" " + stripnl(n))
print(f" {stripnl(n)}")
def getNode(self, nodeId):
"""Return a node object which contains device settings and channel info"""