fix error when not specifying lights

This commit is contained in:
Franzi 2023-08-07 14:45:30 +02:00
parent ff3ea2f452
commit 4a10c73ab7
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -69,11 +69,11 @@ def main():
queue = Queue()
lights = []
for addr in args.ignition_wal_l710:
for addr in args.ignition_wal_l710 or []:
lights.append(IgnitionWALL710(addr))
for addr in args.varytec_wash_zoom_712:
for addr in args.varytec_wash_zoom_712 or []:
lights.append(VarytecHeroWashZoom712(addr))
for addr in args.wled:
for addr in args.wled or []:
lights.append(WLED(addr))
if not lights: