Skip to content

Commit

Permalink
Fix re-auth with OTP while app runtime #251
Browse files Browse the repository at this point in the history
  • Loading branch information
Dielee committed Oct 27, 2024
1 parent fd4fc9e commit 75db5da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.10.4
### 🐛 Bug Fixes:

- re-fix bug if app needs to be re-authenticated with OTP while runtime

## v1.10.3
### 🐛 Bug Fixes:

Expand Down
2 changes: 1 addition & 1 deletion src/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Volvo2Mqtt"
description: "Volvo AAOS MQTT bridge"
version: "1.10.3"
version: "1.10.4"
slug: "volvo2mqtt"
init: false
url: "https://github.com/Dielee/volvo2mqtt"
Expand Down
2 changes: 1 addition & 1 deletion src/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from config import settings

VERSION = "v1.10.3"
VERSION = "v1.10.4"

OAUTH_TOKEN_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2"
OAUTH_AUTH_URL = "https://volvoid.eu.volvocars.com/as/authorization.oauth2"
Expand Down
2 changes: 1 addition & 1 deletion src/volvo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 75db5da

Please sign in to comment.