core: Local calendar: another start/end validation error
The problem
Hi, already found the other validation error that should have been fixed by https://github.com/home-assistant/core/pull/84104 However, after upgrading to 2022.12.7, my calendar still disappears after a restart.
There is only one entry in the calendar, repeating for ever, with a weekly schedule of Monday to Friday.
Log:
Error while setting up local_calendar platform for calendar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/local_calendar/calendar.py", line 46, in async_setup_entry
calendar = IcsCalendarStream.calendar_from_ics(ics)
File "/usr/local/lib/python3.10/site-packages/ical/calendar_stream.py", line 69, in calendar_from_ics
stream = cls.from_ics(content)
File "/usr/local/lib/python3.10/site-packages/ical/calendar_stream.py", line 56, in from_ics
return cls.parse_obj(result)
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for IcsCalendarStream
vcalendar -> 0 -> vevent -> 0 -> __root__
Unexpected dtstart value '2022-12-15 07:45:00' was datetime but dtend value '2022-12-15' was not datetime (type=value_error)
The ICS file that was created in .storage:
BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTAMP:20221215T071856
UID:bc8435e4-7c48-11ed-929a-525400dbc44c
DTSTART:20221215T074500
DTEND:20221215T090000
SUMMARY:Wecker Adrian
CREATED:20221215T071856
DESCRIPTION:
RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
SEQUENCE:0
END:VEVENT
END:VCALENDAR
What version of Home Assistant Core has the issue?
2022.12.7
What was the last working version of Home Assistant Core?
none
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Local Calendar
Link to integration documentation on our website
https://www.home-assistant.io/integrations/local_calendar/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (12 by maintainers)
Nothing special: It’s a x86_64 qemu VM running via libvirtd on debian bullseye on a Celeron N5095 (nas box)
Nice! It works!