Logger: homeassistant.helpers.entity
Source: custom_components/yunmi_water_heater/water_heater.py:397
First occurred: 上午10:55:39 (12 occurrences)
Last logged: 上午10:56:35
Update for water_heater.yunmi_water_heater fails
Traceback (most recent call last):
File "/config/custom_components/yunmi_water_heater/water_heater.py", line 296, in yunmi_get_deviceid
self._did = res_list['result']['list'][0]['did']
IndexError: list index out of range
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 391, in update
self.yunmi_get_deviceid()
File "/config/custom_components/yunmi_water_heater/water_heater.py", line 300, in yunmi_get_deviceid
_LOGGER.error('get deviceid failed:'+e)
TypeError: can only concatenate str (not "IndexError") to str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
raise exc
File "/config/custom_components/yunmi_water_heater/water_heater.py", line 447, in async_update
await self._controller.update()
File "/config/custom_components/yunmi_water_heater/water_heater.py", line 397, in update
_LOGGER.error("update fail"+e.__context__)
TypeError: can only concatenate str (not "IndexError") to str