|
发表于 2020-11-30 16:11:07
来自手机
|
显示全部楼层
Logger: homeassistant.components.water_heater Source: custom_components/yunmi_water_heater/water_heater.py:173 Integration: Water Heater (documentation, issues) First occurred: 2020年11月29日 下午7:49:47 (1 occurrences) Last logged: 2020年11月29日 下午7:49:47 Error while setting up yunmi_water_heater platform for water_heater Traceback (most recent call last): File "/config/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: 'result' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/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 "/config/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 "/config/custom_components/yunmi_water_heater/water_heater.py", line 169, in __init__ self.yunmi_login() File "/config/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: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/yunmi_water_heater/water_heater.py", line 128, in async_setup_platform yunmi_wh = YunmiWaterHeater(hass, name, phone_number, password, client_id) File "/config/custom_components/yunmi_water_heater/water_heater.py", line 411, in __init__ self._controller = YunmiWaterHeaterController(hass, phone_number, password, client_id) File "/config/custom_components/yunmi_water_heater/water_heater.py", line 173, in __init__ _LOGGER.error("update fail"+e.__context__) TypeError: can only concatenate str (not "TypeError") to str |
|