Skip to content

Commit

Permalink
Update audi_services.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coreywillwhat authored Jul 26, 2024
1 parent 355f0a9 commit 6c0202c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/audiconnect/audi_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ async def _get_home_region_setter(self, vin: str):
async def _get_security_token(self, vin: str, action: str):
# Challenge
headers = {
"User-Agent": "okhttp/3.7.0",
"X-App-Version": "3.14.0",
"User-Agent": HDR_USER_AGENT,
"X-App-Version": HDR_XAPP_VERSION,
"X-App-Name": "myAudi",
"Accept": "application/json",
"Authorization": "Bearer " + self.vwToken.get("access_token"),
Expand Down Expand Up @@ -447,9 +447,9 @@ async def _get_security_token(self, vin: str, action: str):
}

headers = {
"User-Agent": "okhttp/3.7.0",
"User-Agent": HDR_USER_AGENT,
"Content-Type": "application/json",
"X-App-Version": "3.14.0",
"X-App-Version": HDR_XAPP_VERSION,
"X-App-Name": "myAudi",
"Accept": "application/json",
"Authorization": "Bearer " + self.vwToken.get("access_token"),
Expand All @@ -471,7 +471,7 @@ def _get_vehicle_action_header(self, content_type: str, security_token: str):
"Host": "mal-3a.prd.eu.dp.vwg-connect.com"
if self._country.upper() == REGION_USA
else "msg.volkswagen.de",
"X-App-Version": "4.26.0",
"X-App-Version": HDR_XAPP_VERSION,
"X-App-Name": "myAudi",
"Authorization": "Bearer " + self.vwToken.get("access_token"),
"Accept-charset": "UTF-8",
Expand Down

0 comments on commit 6c0202c

Please sign in to comment.