mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
Fix example
This commit is contained in:
parent
7b28029ae0
commit
b700ae75e9
2 changed files with 6 additions and 4 deletions
|
|
@ -208,7 +208,7 @@ class MeshCore:
|
|||
if not self._contacts:
|
||||
return None
|
||||
|
||||
for contact_id, contact in self._contacts.items():
|
||||
for _, contact in self._contacts.items():
|
||||
if contact.get("adv_name", "").lower() == name.lower():
|
||||
return contact
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue