Skip to content

Commit

Permalink
Use force for explicit refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jan 5, 2025
1 parent 973f24a commit 5038a9b
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 @@ -197,7 +197,7 @@ async def get_ev_data(self, vin: str) -> None:

try:
if self.auth.need_token_refresh():
await self.auth.get_token()
await self.auth.get_token(force=True)
except PolestarAuthException as e:
self.latest_call_code = 500
self.logger.warning("Auth Exception: %s", str(e))
Expand Down

0 comments on commit 5038a9b

Please sign in to comment.