mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-06-21 23:30:03 +08:00
fix: update miot cloud raise error msg (#551)
This commit is contained in:
@ -166,7 +166,7 @@ class MIoTOauthClient:
|
|||||||
key in res_obj['result']
|
key in res_obj['result']
|
||||||
for key in ['access_token', 'refresh_token', 'expires_in'])
|
for key in ['access_token', 'refresh_token', 'expires_in'])
|
||||||
):
|
):
|
||||||
raise MIoTOauthError(f'invalid http response, {http_res.text}')
|
raise MIoTOauthError(f'invalid http response, {res_str}')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
**res_obj['result'],
|
**res_obj['result'],
|
||||||
|
Reference in New Issue
Block a user