Extend waiting time for otp tp 120 seconds

This commit is contained in:
Dielee
2024-05-27 14:05:19 +02:00
parent 245dd82c82
commit 8bd0388690
+1 -1
View File
@@ -149,7 +149,7 @@ def send_otp(auth_session, data):
logging.info("Waiting for otp code... Please check your mailbox and post your otp code to the following "
"mqtt topic \"volvoAAOS2mqtt/otp_code\". Retry " + str(i) + "/" + str(otp_max_loops))
time.sleep(5)
time.sleep(8)
if not mqtt.otp_code:
raise Exception ("No OTP found, exting...")