From 16c6447aeeef5fb3dba6a7ee6f44dc695f2c58f3 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Wed, 7 Feb 2024 16:56:14 +0100 Subject: [PATCH] test --- app/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils.py b/app/utils.py index d9f4558..165c7a8 100644 --- a/app/utils.py +++ b/app/utils.py @@ -26,6 +26,8 @@ def run_telnet_command(powerbar, command): try: tn = get_telnet_connection(powerbar) tn.write(f"{command}\r\n".encode('ascii')) + time.sleep(1) + tn.write(f"{command}\r\n".encode('ascii')) tn.close() return True except Exception as e: