foxess_em
foxess_em copied to clipboard
Load average model suddenly stopped working
Version of the custom_component
v1.8.0
Home Assistant: 2023.8.4
Describe the bug
Since rebooting Home Assistant yesterday, none of the house load average entities are reporting data. I've tried rebooting Home Assistant again, reloading the integration and going through the setup wizard again. The Solcast forecast is still working.
Debug log
I see the following error in the logs every 30 minutes.
First occurred: 2 September 2023 at 17:46:03 (19 occurrences)
Last logged: 11:30:01
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/foxess_em/average/average_controller.py", line 70, in async_refresh
await self._model.refresh()
File "/config/custom_components/foxess_em/average/average_model.py", line 44, in refresh
await self._update_history(self._tracked_sensors[sensor])
File "/config/custom_components/foxess_em/average/average_model.py", line 55, in _update_history
await self._update_item(item)
File "/config/custom_components/foxess_em/average/average_model.py", line 93, in _update_item
values_dict[0] = {
~~~~~~~~~~~^^^
IndexError: list assignment index out of range