Home-Assistant-Sensor-Afvalbeheer icon indicating copy to clipboard operation
Home-Assistant-Sensor-Afvalbeheer copied to clipboard

Waste collector "meerlanden" not found! after upgrade from 5.0.2 to 5.0.3

Open HoekieN opened this issue 1 year ago • 3 comments

Hi, after upgrading to 5.0.3 Afvalbeheer is not working anymore for me and i get the following error in the log.

Logger: homeassistant.helpers.entity Source: custom_components/afvalbeheer/API.py:148 Integration: Afvalbeheer (documentation) First occurred: 6:22:43 PM (8 occurrences) Last logged: 6:24:13 PM

Update for sensor.meerlanden_gft fails Update for sensor.meerlanden_restafval fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 710, in async_device_update raise exc File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/afvalbeheer/sensor.py", line 180, in update collection = self.data.collections.get_first_upcoming_by_type(self.waste_type) File "/config/custom_components/afvalbeheer/API.py", line 148, in collections return self.collector.collections AttributeError: 'NoneType' object has no attribute 'collections'

HoekieN avatar Oct 13 '22 16:10 HoekieN

Logger: homeassistant Source: custom_components/afvalbeheer/API.py:133 Integration: Afvalbeheer (documentation) First occurred: 6:22:19 PM (1 occurrences) Last logged: 6:22:19 PM

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/afvalbeheer/API.py", line 133, in async_update await self.collector.update() AttributeError: 'NoneType' object has no attribute 'update'

HoekieN avatar Oct 13 '22 16:10 HoekieN

Same issue, rolling back to 5.0.2 solves the error

ronaldt80 avatar Oct 13 '22 19:10 ronaldt80

Same issue here, also rolled back to 5.0.2

gkappen avatar Oct 13 '22 19:10 gkappen

Confirmed too.

andyfsimon avatar Oct 14 '22 08:10 andyfsimon

Same issue here, rolling back to 5.0.2 solves the error also

ookonbekend avatar Oct 14 '22 09:10 ookonbekend

Also the same issue here, rolled back to 5.0.2 wastecollector: Circulus

keesg60 avatar Oct 14 '22 10:10 keesg60

Can someone please share their config of the platform in a DM the HA forum with me? Including their address

I'll write a fix tomorrow!

pippyn avatar Oct 14 '22 11:10 pippyn

Can someone please share their config of the platform in a DM the HA forum with me? Including their address

I'll write a fix tomorrow!

I have send you a DM on HA with my config

HoekieN avatar Oct 14 '22 12:10 HoekieN

Thank you @HoekieN! The issue should be fixed in v5.0.4, can you please confirm?

I'm so sorry for introducing this bug

pippyn avatar Oct 15 '22 11:10 pippyn

No problem.

Thanks it works again :)

HoekieN avatar Oct 15 '22 15:10 HoekieN