Skip to content

Commit

Permalink
fix bmw soc
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl committed Jul 6, 2023
1 parent 82da2d2 commit 913aa09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/modules/vehicles/bmw/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,11 @@ def requestData(token: str, vin: str) -> dict:
log.error("bmw.requestData: Unknown VIN, must start with WB or WM")
raise RuntimeError

url = 'https://' + api_server + '/eadrax-vcs/v2/vehicles/' + vin + '/state'
url = 'https://' + api_server + '/eadrax-vcs/v4/vehicles/state'
headers = {
'User-Agent': 'Dart/2.14 (dart:io)',
'x-user-agent': 'android(SP1A.210812.016.C1);' + brand + ';2.5.2(14945);row',
'bmw-vin': vin,
'Authorization': (token["token_type"] + " " + token["access_token"])}
body = getHTTP(url, headers)
response = json.loads(body)
Expand Down

0 comments on commit 913aa09

Please sign in to comment.