test
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 36s

This commit is contained in:
Matthew Frost 2024-02-07 16:56:14 +01:00
parent 1821a5d53f
commit 16c6447aee

View file

@ -26,6 +26,8 @@ def run_telnet_command(powerbar, command):
try: try:
tn = get_telnet_connection(powerbar) tn = get_telnet_connection(powerbar)
tn.write(f"{command}\r\n".encode('ascii')) tn.write(f"{command}\r\n".encode('ascii'))
time.sleep(1)
tn.write(f"{command}\r\n".encode('ascii'))
tn.close() tn.close()
return True return True
except Exception as e: except Exception as e: