From ea1dda171c36e0cf0021767eadb670bc8443b5dc Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Wed, 28 Feb 2024 20:41:57 +0100 Subject: [PATCH] toggle --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 573ab43..e51ee74 100644 --- a/app/views.py +++ b/app/views.py @@ -154,7 +154,7 @@ def powerbar_control(powerbar, outlet, action): command = run_telnet_command(powerbar,f"on {outlet}") if powerbars[powerbar]['method'] == "batch_telnet": - queues[powerbar].put({"outlet": outlet, "action" : "off"}) + queues[powerbar].put({"outlet": outlet, "action" : "on"}) command = True if command: