fix error when not specifying lights
This commit is contained in:
parent
ff3ea2f452
commit
4a10c73ab7
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -69,11 +69,11 @@ def main():
|
||||||
queue = Queue()
|
queue = Queue()
|
||||||
|
|
||||||
lights = []
|
lights = []
|
||||||
for addr in args.ignition_wal_l710:
|
for addr in args.ignition_wal_l710 or []:
|
||||||
lights.append(IgnitionWALL710(addr))
|
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))
|
lights.append(VarytecHeroWashZoom712(addr))
|
||||||
for addr in args.wled:
|
for addr in args.wled or []:
|
||||||
lights.append(WLED(addr))
|
lights.append(WLED(addr))
|
||||||
|
|
||||||
if not lights:
|
if not lights:
|
||||||
|
|
Loading…
Reference in a new issue