core: Cannot add a new entry to Local Calendar

The problem

When I try to add a new daily entry to the new local calendar integration no entry is made. I have tried adding a few different entries (1 day one off entry, 1 day repeated entry, 1 week repeating daily entry etc) but nothing is saved. I enabled logging of the new calendar integration and get the data below. This is an example image of what I was trying to add: image I also found similar issue in the previous few versions so I deleted the calendar integration and readded it today

What version of Home Assistant Core has the issue?

2022.12.0b5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Local Calendar

Link to integration documentation on our website

https://rc.home-assistant.io/integrations/local_calendar

Diagnostics information

No response

Example YAML snippet

None - all setup via UI

Anything in the logs that might be useful for us?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/local_calendar/calendar.py:105
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:28:30 am (3 occurrences)
Last logged: 11:33:36 am

[139856699441312] Error handling message: Unknown error (unknown_error) from 192.168.1.234 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36)
[139856886926112] Error handling message: Unknown error (unknown_error) from 192.168.1.101 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/calendar/__init__.py", line 403, in handle_calendar_event_create
    await entity.async_create_event(**msg[CONF_EVENT])
  File "/usr/src/homeassistant/homeassistant/components/local_calendar/calendar.py", line 105, in async_create_event
    event = Event.parse_obj(
  File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
  File "/usr/local/lib/python3.10/site-packages/ical/event.py", line 249, in __init__
    super().__init__(**data)
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Event
__root__
  Expected end value type to match start (type=value_error)

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 33 (17 by maintainers)

Most upvoted comments

Hi https://github.com/home-assistant/core/issues/84171 was reopened and I’m following up there. We can reopen here too if that helps but either way, I’m getting to the bottom of the issue. Thanks.

Everything that was in 12.0b6 is also in 12.1 plus some things on top. The payload to me still looks good. Curious if @allenporter can spot something that is off here.