Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Fixed bug with broken refresh token url
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAnnekov committed Jun 28, 2019
1 parent 3db7cf2 commit e6a986e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"annekov",
"pavlo",
"tuya",
"tuyacloudurl",
"tuyaha",
"tuyapy"
]
Expand Down
2 changes: 1 addition & 1 deletion tuyaha/tuyaapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def check_access_token(self):
def refresh_access_token(self):
data = "grant_type=refresh_token&refresh_token="+SESSION.refreshToken
response = requests.get(
(TUYACLOUDURL+"homeassistant/access.do").format(SESSION.region)
(TUYACLOUDURL+'/homeassistant/access.do').format(SESSION.region)
+ "?" + data)
response_json = response.json()
if response_json.get('responseStatus') == 'error':
Expand Down

0 comments on commit e6a986e

Please sign in to comment.