You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I combine a couple calendars into one for another use. When I try to use this plugin I get this error.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
await self.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 220, in async_update
await self.data.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 343, in async_update
self.parser.set_content(self._calendar_data.get())
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ics_calendar/parsers/parser_rie.py", line 33, in set_content
self._calendar = Calendar.from_ical(content)
~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/icalendar/cal.py", line 487, in from_ical
raise ValueError(cls._format_error(
'Found multiple components where only one is allowed', st))
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
await self.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 220, in async_update
await self.data.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 343, in async_update
self.parser.set_content(self._calendar_data.get())
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ics_calendar/parsers/parser_ics.py", line 33, in set_content
self._calendar = Calendar(re.sub(self._re_method, "", content))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ics/icalendar.py", line 66, in init
raise NotImplementedError(
'Multiple calendars in one file are not supported by this method. Use ics.Calendar.parse_multiple()')
NotImplementedError: Multiple calendars in one file are not supported by this method. Use ics.Calendar.parse_multiple()
The text was updated successfully, but these errors were encountered:
Are you OK with having both calendars show up as a single calendar in HA? I ask because anything else would require either a funky configuration, which relies on the order of calendars in the ICS file remaining constant (probably not a big deal), or really twisting the code around to do it. I won't go the latter route, and I'm hesitant to do the former -- I expect this is a very unusual use case, and I don't want to make my own maintenance problems harder. :)
Please note that anything will be a while, as new features are a low priority compared to what's in the TODO.md file.
Are you OK with having both calendars show up as a single calendar in HA? I ask because anything else would require either a funky configuration, which relies on the order of calendars in the ICS file remaining constant (probably not a big deal), or really twisting the code around to do it. I won't go the latter route, and I'm hesitant to do the former -- I expect this is a very unusual use case, and I don't want to make my own maintenance problems harder. :)
Please note that anything will be a while, as new features are a low priority compared to what's in the TODO.md file.
Yes, I combine them because I use Dakboard on a wall tablet that won't allow more than one calendar on a free account....so I manually combine them all via a script. I have no need to keep them separate on Home Assistant.
I combine a couple calendars into one for another use. When I try to use this plugin I get this error.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
await self.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 220, in async_update
await self.data.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 343, in async_update
self.parser.set_content(self._calendar_data.get())
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ics_calendar/parsers/parser_rie.py", line 33, in set_content
self._calendar = Calendar.from_ical(content)
~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/icalendar/cal.py", line 487, in from_ical
raise ValueError(cls._format_error(
'Found multiple components where only one is allowed', st))
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
await self.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 220, in async_update
await self.data.async_update()
File "/config/custom_components/ics_calendar/calendar.py", line 343, in async_update
self.parser.set_content(self._calendar_data.get())
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ics_calendar/parsers/parser_ics.py", line 33, in set_content
self._calendar = Calendar(re.sub(self._re_method, "", content))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ics/icalendar.py", line 66, in init
raise NotImplementedError(
'Multiple calendars in one file are not supported by this method. Use ics.Calendar.parse_multiple()')
NotImplementedError: Multiple calendars in one file are not supported by this method. Use ics.Calendar.parse_multiple()
The text was updated successfully, but these errors were encountered: