Open JayWll opened 4 days ago
After much exploration, I managed to track the problem down to the problematic calendar event, and I eventually figured out that its description included the Unicode character for a non breaking space \u00a0.
I was able to replace it with a regular space and all is now well. I'm not sure what ics_calendar's expected behaviour should be.
My expectation is that it would work. :)
I might be able to work around it, but when I have the chance, I’ll see if I can reproduce it with something small and submit a bit report to the parser. As long as it was UTF-8 encoded correctly, it should be allowed, IMO.
Home Assistant Setup Please indicate your version of HA and how it is installed.
Version: 2024.11.2
Installation Type (put an X between the square brackets for your HA): [x] Home Assistant OS [] Home Assistant Supervised [] Home Assistant Container [] Home Assistant Core
Hardware platform: [x] ARM [] x86-64
Describe the bug One of my calendars that had previously been working has been consistently failing over the past few days. No events are visible in the calendar. Other calendars managed through ics_calendar are not experiencing any issue. I assime therefore this must be related to some content/event on the calendar itself, but I can't figure out what that could be. The error from the home assistant logs is below, although I've truncated both the
ValueError
lines as they're each several thousand characters long.Validating the ical file through https://icalendar.org/validator.html results in no errors found.
I'm using ics_calendar version 5.0.4 installed through HACS.