mirror of
https://github.com/meshtastic/python.git
synced 2026-09-14 22:39:18 -04:00
fix type check
This commit is contained in:
1 parent
7088b90514
commit
78b92cecc9
1 file changed
+1
-1
@@ -618,7 +618,7 @@ class MeshInterface: # pylint: disable=R0902
|
||||
elif telemetryType == "power_metrics":
|
||||
r.power_metrics.CopyFrom(telemetry_pb2.PowerMetrics())
|
||||
else: # fall through to device metrics
|
||||
if self.nodes is not None:
|
||||
if self.nodesByNum is not None:
|
||||
node = self.nodesByNum.get(self.localNode.nodeNum)
|
||||
if node is not None:
|
||||
metrics = node.get("deviceMetrics")
|
||||
|
||||
Reference in new issue
Block a user