From 7cfd5dc95fba80046662ea300b92cb55425056b3 Mon Sep 17 00:00:00 2001 From: AphLute <80430144+AphLute@users.noreply.github.com> Date: Fri, 30 Dec 2022 05:17:08 -0600 Subject: [PATCH] Skip devices with name of NoneType (#11) --- lighthouse-v2-manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthouse-v2-manager.py b/lighthouse-v2-manager.py index 8e6e0a5..d1da097 100644 --- a/lighthouse-v2-manager.py +++ b/lighthouse-v2-manager.py @@ -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