Da sehr viele Kommentare und Anfragen bzgl. Problemen mit der Waste Collection Schedule Integration nach dem Home Assistant Update 2025.1 gekommen sind, habe ich ein Video zu einem Bugfix erstellt.
Mit diesen Änderungen der Integration läuft sie wieder Problemlos.
Ich hoffe die Ersteller der Integration geben zeitnahe ein Update heraus.
5 „Gefällt mir“
Danke Max für den Workaround
Leider löst das nur ein Problem, es gibt aber noch ein 2tes wenn man per webcal die Daten bezieht, das funktioniert leider nicht wegen der inkompatiblen icalender Version.
Siehe hier…
offen 08:45PM - 03 Jan 25 UTC
### I Have A Problem With:
The integration in general
### What's Your Problem
…
After Update to Hassio 2025.1.0 I get this error
### Source (if relevant)
_No response_
### Logs
```Shell
Logger: homeassistant.setup
Quelle: setup.py:416
Erstmals aufgetreten: 21:40:34 (1 Vorkommnisse)
Zuletzt protokolliert: 21:40:34
Error during setup of component waste_collection_schedule
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File "/config/custom_components/waste_collection_schedule/init_yaml.py", line 109, in async_setup
await hass.async_add_executor_job(
...<6 lines>...
)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/waste_collection_schedule/waste_collection_api.py", line 88, in add_source_shell
new_shell = SourceShell.create(
source_name=source_name,
...<3 lines>...
day_offset=day_offset,
)
File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 217, in create
source_module: SourceModule = importlib.import_module(
~~~~~~~~~~~~~~~~~~~~~~~^
f"waste_collection_schedule.source.{source_name}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py", line 16, in <module>
from waste_collection_schedule.service.ICS_v1 import ICS_v1
File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS_v1.py", line 6, in <module>
import recurring_ical_events
File "/usr/local/lib/python3.13/site-packages/recurring_ical_events.py", line 1530, in <module>
class CalendarQuery:
...<193 lines>...
raise IndexError("No components found.")
File "/usr/local/lib/python3.13/site-packages/recurring_ical_events.py", line 1547, in CalendarQuery
icalendar.InvalidCalendar,
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'icalendar' has no attribute 'InvalidCalendar'
```
### Relevant Configuration
_No response_
### Checklist Source Error
- [X] Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
- [X] Checked that the website of your service provider is still working
- [X] Tested my attributes on the service provider website (if possible)
- [X] I have tested with the latest version of the integration (master) (for HACS in the 3 dot menu of the integration click on "Redownload" and choose master as version)
### Checklist Sensor Error
- [X] Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)
### Required
- [X] I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
- [X] I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
Hey Maxx, schön das du wieder da bist!!!
ich muss mich korrigieren, das Problem 2 entstand dadurch das ich in der Zeile 161 das „else:“ ebenfalls aus kommentiert hatte.
Jetzt funktioniert es wie es soll und ich konnte sogar meine config aus der configuration.yaml entfernen und sie per HA Frontend erneut anlegen… war eh schon lange fällig und habe ich nun nachgeholt.