From 4a10c73ab744895c32855e118eaa55e6b43fc7ad Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 7 Aug 2023 14:45:30 +0200 Subject: [PATCH] fix error when not specifying lights --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 88e799b..3dbaa81 100755 --- a/main.py +++ b/main.py @@ -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: - lights.append(VarytecHeroWashZoom712(addr)) - for addr in args.wled: + for addr in args.varytec_wash_zoom_712 or []: + lights.append(VarytecHeroWashZoom712(addr)) + for addr in args.wled or []: lights.append(WLED(addr)) if not lights: