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