diff --git a/custom_components/xiaomi_home/miot/miot_cloud.py b/custom_components/xiaomi_home/miot/miot_cloud.py index 751defd..0cfc272 100644 --- a/custom_components/xiaomi_home/miot/miot_cloud.py +++ b/custom_components/xiaomi_home/miot/miot_cloud.py @@ -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'],