Skip to content

Commit

Permalink
Merge branch 'fix-ownerapi' into jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B committed Jan 25, 2024
2 parents 8740c65 + 697748c commit 4b1767f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/TWCManager/Vehicle/TeslaAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def car_api_available(
if self.getCarApiBearerToken() != "":
if self.getVehicleCount() < 1:
url = self.baseURL
if 'owner-api' in url:
url = url.replace('vehicles', 'products')
headers = {
"accept": "application/json",
"Authorization": "Bearer " + self.getCarApiBearerToken(),
Expand Down

0 comments on commit 4b1767f

Please sign in to comment.