syssi/xiaomi_cooker

Error temperature_history

trantuan4889 opened this issue · 6 comments

Dear Ad.
Error temperature_history, Can you fix it ?
2020-03-19 10:34:43 ERROR (MainThread) [homeassistant.util.logging] Exception in async_update_callback when dispatching 'xiaomi_cooker_updated': ('192.168.1.65',)
Traceback (most recent call last):
File "/config/custom_components/xiaomi_cooker/sensor.py", line 106, in async_update_callback
self._state = temperature_history.temperatures.pop()
IndexError: pop from empty list

syssi commented

Which cooker model do you own?

Which cooker model do you own?

xiaomi_cooker:
name: "Rice Cooker"
host: !secret rice_cooker_host
token: !secret rice_cooker_token
model: chunmi.cooker.normal2

I have the same issue

syssi commented

Could you install python-miio (pip3 install python-miio) and provide the output of some miiocli calls?

Could you install python-miio (pip3 install python-miio) and provide the output of some miiocli calls?

yes

syssi commented

Please update the custom component and try again!