Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: No Generic ICS Kalender is working since Update to 2025.1 #3444

Closed
7 tasks done
Ruko2010 opened this issue Jan 6, 2025 · 3 comments
Closed
7 tasks done

[Bug]: No Generic ICS Kalender is working since Update to 2025.1 #3444

Ruko2010 opened this issue Jan 6, 2025 · 3 comments

Comments

@Ruko2010
Copy link

Ruko2010 commented Jan 6, 2025

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

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

waste_collection_schedule:
 sources:
   - name: ics
     args:
       file: "/config/www/2025.ics"
       regex: "Leerung (.*)"

Checklist Source Error

  • Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
  • Checked that the website of your service provider is still working
  • Tested my attributes on the service provider website (if possible)
  • 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

  • Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)

Required

  • I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
  • 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.
@InFlames82
Copy link

Same here

@reisueber
Copy link

reisueber commented Jan 6, 2025

I found a solution on youtube. Although the video is in German, it might still be helpful: 🔧🚮 Waste Collection Schedule - Bugfix - nach Home Assistant Update 2025.1.0

@Ruko2010
Copy link
Author

Ruko2010 commented Jan 6, 2025

I see now, that the issue already has a pull request:
#3421

I implemented the fix and the error is gone. Sadly I now get an error with my sensor configuration, but this is another issue I guess.

@Ruko2010 Ruko2010 closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants