Skip to content

Commit

Permalink
Change BASE_URL to BASE_URL_V2 to fix internal server error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ola Lidholm authored and leeyuentuen committed Mar 22, 2024
1 parent 67e3d9d commit 7ee148d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/polestar_api/pypolestar/polestar.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def call_api(func):
except PolestarNotAuthorizedException:
await self.auth.get_token()
except PolestarApiException as e:
self._set_latest_call_code(BASE_URL, 500)
self._set_latest_call_code(BASE_URL_V2, 500)
_LOGGER.warning('Failed to get %s data %s',
func.__name__, str(e))

Expand Down

0 comments on commit 7ee148d

Please sign in to comment.