From a0dac8516ecf1d8e430a68e48e8ee81650d46228 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Wed, 28 Feb 2024 20:52:14 +0100 Subject: [PATCH] lights --- app/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index e51ee74..258c6e1 100644 --- a/app/views.py +++ b/app/views.py @@ -245,7 +245,8 @@ def powebar_group_action(group, action): command = run_telnet_command(powerbar,f"{action} {outlets}") if powerbars[powerbar]['method'] == "batch_telnet": - queues[powerbar].put({"outlet": outlet, "action" : action}) + for outlet in device['outlets']: + queues[powerbar].put({"outlet": outlet, "action" : action}) command = True if command: