|
发表于 2020-1-31 11:44:36
|
显示全部楼层
2020-01-31 11:36:33 ERROR (MainThread) [custom_components.yunmi_water_heater.water_heater] ============= yunmi water heater setup -> name: yunmi water heater =============
2020-01-31 11:36:33 ERROR (MainThread) [custom_components.yunmi_water_heater.water_heater] ============= YunmiWaterHeaterController setup -> phone_number: ********** =============
2020-01-31 11:36:34 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for gocloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2020-01-31 11:36:35 ERROR (MainThread) [homeassistant.components.water_heater] Error while setting up platform yunmi_water_heater
Traceback (most recent call last):
File "/home/pi/.homeassistant/custom_components/yunmi_water_heater/water_heater.py", line 243, in yunmi_get_access_token
self._access_token_exp_time = int(res_list['result']['expiresIn'])
KeyError: 'expiresIn'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.homeassistant/custom_components/yunmi_water_heater/water_heater.py", line 222, in yunmi_login
tk_arr = self.yunmi_get_access_token(self._refresh_token, self._client_id)
File "/home/pi/.homeassistant/custom_components/yunmi_water_heater/water_heater.py", line 246, in yunmi_get_access_token
_LOGGER.error('get access token failed:'+e.__context__)
TypeError: can only concatenate str (not "NoneType") to str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.homeassistant/custom_components/yunmi_water_heater/water_heater.py", line 169, in __init__
self.yunmi_login()
File "/home/pi/.homeassistant/custom_components/yunmi_water_heater/water_heater.py", line 231, in yunmi_login
_LOGGER.error('login failed:'+e.__context__)
TypeError: can only concatenate str (not "KeyError") to str
During handling of the above exception, another exception occurred: |
|