Skip to content

Commit

Permalink
fix: update miot cloud raise error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld committed Jan 3, 2025
1 parent b6147de commit 984e745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_home/miot/miot_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def __get_token_async(self, data) -> dict:
key in res_obj['result']
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 {
**res_obj['result'],
Expand Down

0 comments on commit 984e745

Please sign in to comment.