Hallo, hatte ebenfalls Probleme mit dem Update auf das neue Jahr. Lösung steht in GitHu, ist ein Bug und geschlossen. Bin grade unterwegs, daher hab ich nur den Link dorthin kopiert, dort ist ein Link zu einem YT-Video mit einem Workaround.
Hier der Link zum GitHub:
offen 07:35AM - 06 Jan 25 UTC
geschlossen 08:10AM - 06 Jan 25 UTC
### I Have A Problem With:
The integration in general
### What's Your Problem
…
After the Update to 2025.1 of HA I get the error message when (re-)starting HA.
### Source (if relevant)
_No response_
### Logs
```Shell
Logger: homeassistant.setup
Quelle: setup.py:416
Erstmals aufgetreten: 07:45:58 (1 Vorkommnisse)
Zuletzt protokolliert: 07:45:58
Error during setup of component waste_collection_schedule
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/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/local/lib/python3.13/site-packages/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
```YAML
waste_collection_schedule:
sources:
- name: ics
args:
file: "/config/www/2025.ics"
regex: "Leerung (.*)"
```
### 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.