Skip to content

Commit

Permalink
Add missing return in token refresh logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jan 5, 2025
1 parent 6a8fd69 commit a847642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/polestar_api/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/pypolestar/polestar_api/issues",
"requirements": ["gql[httpx]>=3.5.0", "homeassistant>=2024.6.0"],
"version": "1.13.0"
"version": "1.13.1"
}
1 change: 1 addition & 0 deletions custom_components/polestar_api/pypolestar/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ async def get_token(self, force: bool = False) -> None:
try:
await self._token_refresh()
self.logger.debug("Token refreshed")
return
except Exception as exc:
self.logger.warning(
"Failed to refresh token, retry with code", exc_info=exc
Expand Down

0 comments on commit a847642

Please sign in to comment.