Fix re-auth with OTP while app runtime #251

This commit is contained in:
linus
2024-10-27 10:06:47 +01:00
parent fd4fc9e173
commit 75db5da324
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -161,8 +161,8 @@ def send_otp(auth_session, data):
raise Exception ("No OTP found, exting...")
auth = auth_session.post(next_url, data=json.dumps(body))
mqtt.otp_code = None
if auth.status_code == 200:
mqtt.otp_code = None
return auth.json()
else:
message = auth.json()