Method for searching a node by id.

This commit is contained in:
Daniel Ehlers 2013-12-29 04:14:07 +01:00
parent 86485bc7df
commit 90106313eb

View file

@ -36,6 +36,13 @@ class NodeDB:
raise raise
def maybe_node_by_id(self, mac):
for node in self._nodes:
if mac.lower() == node.id:
return node
raise
def parse_vis_data(self,vis_data): def parse_vis_data(self,vis_data):
for x in vis_data: for x in vis_data: