Closed pauligbrest closed 5 years ago
Please update this component and try again. :-)
I'm getting the same issue.
Please update this component and try again. :-)
I update this component. But the same issue
The update was only to restructure the files into the new tree layout in homeassistant. Nothing that would fix this bug.
Changing the code to:
if self._attr == 'temperature' and \
state.mode in [OperationMode.Running, OperationMode.AutoKeepWarm] and \
temperature_history.temperatures:
self._state = temperature_history.temperatures.pop()
clears the error, but no temperature is shown still. I think it might not get the temp history from the cooker during autowarm?
019-02-09 14:28:02 ERROR (MainThread) [custom_components.sensor.xiaomi_cooker] Exception in async_update_callback when dispatching 'xiaomi_cooker_updated': ('192.168.88.14',)
Traceback (most recent call last):
File "/config/custom_components/sensor/xiaomi_cooker.py", line 98, in async_update_callback
IndexError: pop from empty list