From 5038a9b6865e8efb5ed6e8fb52e14da795c1def2 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Sun, 5 Jan 2025 15:43:59 +0100 Subject: [PATCH] Use force for explicit refresh --- custom_components/polestar_api/pypolestar/polestar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/polestar_api/pypolestar/polestar.py b/custom_components/polestar_api/pypolestar/polestar.py index fef8fdf..09fa4c2 100644 --- a/custom_components/polestar_api/pypolestar/polestar.py +++ b/custom_components/polestar_api/pypolestar/polestar.py @@ -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))