-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
CalDav Integration - Calender not available after update #134649
Comments
There is an issue with importing recurring_ical_events from
Exception in <jupyter_0> line 1:
import recurring_ical_events
^
AttributeError: module 'icalendar' has no attribute 'InvalidCalendar' |
Some additional debugging
import pkg_resources
pkg_resources.get_distribution("recurring-ical-events").version shows 3.4.0 recurring_ical_events refers to the missing icalendar.InvalidCalendar which got introduced at niccokunzmann/python-recurring-ical-events@8156e1c about a month ago. https://github.com/niccokunzmann/python-recurring-ical-events/blob/v3.4.0/requirements.txt#L4 shows icalendar 6.1.0 upto 7.x is supported. pkg_resources.get_distribution("icalendar").version shows home-assistant is at icalendar in home-assistant should be |
So it looks like icalevents is the one that depends on 5.0.13, see https://github.com/jazzband/icalevents/blob/master/pyproject.toml#L12 From pipdeptree
The only reference to So; it might be nuking the correct icalendar version and replacing it.. :( Do you have a similar hacs plugin? |
In my specific case:
It's failing only if the search value contains a regex. I only have all-day events in that calendar. Setting search key to a non-regex values seems not to cause issues. |
From my side since yesterday the integration works fine, whyever... no update or similar. |
The problem
after updating to HA Core 2025.1 my calender entity from CalDav integration is not available anymore.
I have already done a reconfiguration etc. but it's still not available
What version of Home Assistant Core has the issue?
core-2025.1.0
What was the last working version of Home Assistant Core?
core-2024.12.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
caldav
Link to integration documentation on our website
https://www.home-assistant.io/integrations/caldav
Diagnostics information
2025-01-04 08:11:23.188 ERROR (MainThread) [homeassistant.components.caldav.coordinator] Unexpected error fetching CalDAV Persönlicher Kalender data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/caldav/coordinator.py", line 96, in _async_update_data
results = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/caldav/objects.py", line 1105, in search
o.expand_rrule(start, end)
~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/caldav/objects.py", line 1796, in expand_rrule
import recurring_ical_events
File "/usr/local/lib/python3.13/site-packages/recurring_ical_events.py", line 1530, in
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'
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: