syssi / xiaomi_cooker

Xiaomi Mi Electric Rice Cooker integration for Home Assistant
Apache License 2.0
141 stars 37 forks source link

Error temperature_history #17

Closed trantuan4889 closed 3 years ago

trantuan4889 commented 4 years ago

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 4 years ago

Which cooker model do you own?

trantuan4889 commented 4 years ago

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

pauligbrest commented 4 years ago

I have the same issue

syssi commented 4 years ago

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

pauligbrest commented 4 years ago

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

yes

syssi commented 3 years ago

Please update the custom component and try again!