Closed pluim003 closed 9 months ago
Thanks for reporting. I think this is a duplicate of #21?
Ok. That's an old one, but I couldn't find anyting with respect to the errormessages. And indeed there are 7 entities with adviesprijs but on my dashboard I only show 2 as I'm interested in only 2. :-) And actually I won't fill the tank at places where they charge the adviesprijs, as usually you can fill it for 25 cents less. :-)
I haven't freed the time to have a proper look, but a fix shouldn't be too hard. The code currently loops 1 time to much. I'll see if I can find some time in the coming week. Anyway, as far as I can see, all available prices are transferred to HA.
Closed as duplicate of #21.
Fixed in release v0.4.0 😄
Describe the bug A clear and concise description of what the bug is.
Noticing these errors:
` 2023-12-20 16:06:20.162 ERROR (MainThread) [homeassistant.components.sensor] brandstofprijzen: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 575, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_device_update await hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/brandstofprijzen/sensor.py", line 129, in update self._state = self.rest.data[idx]