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]: Integration can't load - showing invalid config #3271

Open
6 of 7 tasks
ChristophCaina opened this issue Dec 24, 2024 · 3 comments
Open
6 of 7 tasks

[Bug]: Integration can't load - showing invalid config #3271

ChristophCaina opened this issue Dec 24, 2024 · 3 comments

Comments

@ChristophCaina
Copy link
Contributor

I Have A Problem With:

The integration in general

What's Your Problem

Since today, the integration is showing an invalid configuration in HomeAssistant - and won't load anymore.

Source (if relevant)

No response

Logs

Logger: homeassistant.setup
Source: setup.py:416
First occurred: 11:39:24 AM (1 occurrences)
Last logged: 11:39:24 AM

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

[configuration.yaml]
waste_collection_schedule: !include waste_collection_scheduler.yaml


[waste_collection_scheduler.yaml]
  sources:
    - name: ics
      args:
        url: https://api.abfall.io/?key=76bdaac8568082d77e7a90cb41129f9b&mode=export&idhousenumber=1083&wastetypes=50,53,299,31&timeperiod={%Y}0101-{%Y}1231&showinactive=false&type=ics

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.
@Gloomyeye
Copy link

I can confirm that this bug is introduced with the newest 2025.1 beta version.

@samuel9554
Copy link

I also have this bug in 2025.1 beta.

@hessel-a
Copy link

hessel-a commented Dec 28, 2024

Could it be that Python version 3.13 is the sources of the error. https://rc.home-assistant.io/blog/2024/12/04/release-202412/#weve-upgraded-to-python-313 I also found. https://rc.home-assistant.io/changelogs/core-2025.1 _Look her for: Ensure icalendar==6.1.0 is installed for caldav integration. home-assistant/core#133541

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

4 participants