Skip to content

Commit

Permalink
Skip devices with name of NoneType (nouser2013#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
AphLute authored Dec 30, 2022
1 parent 78fa397 commit 7cfd5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-v2-manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def run(loop, lh_macs):
devices = await discover()
for d in devices:
deviceOk = False
if d.name.find("LHB-") != 0:
if type(d.name) != str or d.name.find("LHB-") != 0:
continue
print (">> Found potential Valve Lighthouse at '"+ d.address +"' with name '"+ d.name +"'...")
services = None
Expand Down

0 comments on commit 7cfd5dc

Please sign in to comment.