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 b26d584 commit 904dfae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/audiconnect/audi_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
URL_INFO_VEHICLE_US,
URL_HOST_ACTION,
URL_HOST_ACTION_US,
URL_HOST_INFO,
URL_HOST_INFO_US,
REGION_USA,
API_LEVEL,
)
Expand Down Expand Up @@ -150,10 +152,8 @@ async def refresh_vehicle_data(self, vin: str):
async def request_current_vehicle_data(self, vin: str):
self._api.use_token(self.vwToken)
data = await self._api.post(
"{homeRegion}/fs-car/bs/vsr/v1/{type}/{country}/vehicles/{vin}/requests".format(
homeRegion=await self._get_home_region(vin.upper()),
type=self._type,
country=self._country,
"{host}/{vin}/vehiclewakeup".format(
host=URL_HOST_INFO_US if self._country.upper() == REGION_USA else URL_HOST_INFO,
vin=vin.upper(),
)
)
Expand Down

0 comments on commit 904dfae

Please sign in to comment.