diff --git a/teslajsonpy/connection.py b/teslajsonpy/connection.py index fdabe81f..41d3b658 100644 --- a/teslajsonpy/connection.py +++ b/teslajsonpy/connection.py @@ -553,7 +553,7 @@ async def refresh_access_token(self, refresh_token): "scope": "openid email offline_access", } auth = await self.websession.post( - self.auth_domain.with_path("/oauth2/v3/token"), + str(self.auth_domain.with_path("/oauth2/v3/token")), data=oauth, ) return auth.json()