Try to fix not saveable OTP Code

This commit is contained in:
Dielee
2024-05-28 08:26:18 +02:00
parent 6306c9a4b3
commit 1f0612ca4a
3 changed files with 21 additions and 9 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ def send_otp(auth_session, data):
if not mqtt.otp_code:
raise Exception ("No OTP found, exting...")
mqtt.delete_otp_input()
mqtt.set_otp_state()
auth = auth_session.post(next_url, data=json.dumps(body))
if auth.status_code == 200:
return auth.json()