Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci fix #130

Merged
merged 2 commits into from
Jan 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions teslajsonpy/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,10 @@ async def refresh_access_token(self, refresh_token):
"refresh_token": refresh_token,
"scope": "openid email offline_access",
}
auth = await self.websession.post(
"https://auth.tesla.com/oauth2/v3/token", data=oauth,
auth = await self.__open(
"/oauth2/v3/token", "post", data=oauth, baseurl="https://auth.tesla.com",
)
return await auth.json()
return auth

async def get_bearer_token(self, access_token):
"""Get bearer token. This is used by the owners API."""
Expand Down