mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-13 11:19:52 +02:00
Fix re-auth with OTP while app runtime #251
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user