Skip to content

Commit

Permalink
Merge branch 'ci_fix' of github.com:alandtse/teslajsonpy into ci_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 31, 2021
2 parents 2a3c154 + ec1b1e6 commit ed7a355
Showing 1 changed file with 3 additions and 3 deletions.
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.__open(
"/oauth2/v3/token", "post", data=oauth, baseurl="https://auth.tesla.com",
auth = await self.websession.post(
"https://auth.tesla.com/oauth2/v3/token", data=oauth,
)
return auth
return await auth.json()

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

0 comments on commit ed7a355

Please sign in to comment.