diff --git a/custom_components/polestar_api/pypolestar/polestar.py b/custom_components/polestar_api/pypolestar/polestar.py index edde205..17cd375 100644 --- a/custom_components/polestar_api/pypolestar/polestar.py +++ b/custom_components/polestar_api/pypolestar/polestar.py @@ -65,8 +65,7 @@ async def async_init(self, verbose: bool = False) -> None: await self.auth.get_token() if self.auth.access_token is None: - self.logger.warning("No access token for %s", self.username) - return + raise PolestarAuthException(f"No access token for {self.username}") self.gql_session = await get_gql_session(self.gql_client)