core: Error fetching Google Calendar data: Invalid recurrence rule in 2023.04.2
The problem
After update to 2023.04.2 getting same error as discribed in issue #81500
Logger: homeassistant
Source: components/calendar/__init__.py:345
First occurred: 11:21:46 (2 occurrences)
Last logged: 11:24:06
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/calendar/__init__.py", line 343, in __post_init__
CALENDAR_EVENT_SCHEMA(dataclasses.asdict(self, dict_factory=skip_none))
File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 229, in _run
return self._exec(self._compiled, value, path)
File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec
raise e if self.msg is None else AllInvalid(self.msg, path=path)
File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 353, in _exec
v = func(path, v)
File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: Invalid rrule: unsupported property: DATE for dictionary value @ data['rrule']
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 439, in refresh
await self.coordinator.async_request_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 200, in async_request_refresh
await self._debounced_refresh.async_call()
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 89, in async_call
await task
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 226, in async_refresh
await self._async_refresh(log_failures=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 341, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 142, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 475, in _handle_coordinator_update
self._apply_coordinator_update()
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 465, in _apply_coordinator_update
self._event = _get_calendar_event(api_event)
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 551, in _get_calendar_event
return CalendarEvent(
File "<string>", line 11, in __init__
File "/usr/src/homeassistant/homeassistant/components/calendar/__init__.py", line 345, in __post_init__
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Failed to validate CalendarEvent: Invalid rrule: unsupported property: DATE for dictionary value @ data['rrule']
What version of Home Assistant Core has the issue?
core-2023.4.2
What was the last working version of Home Assistant Core?
core-2023.4.1
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Google Calendat
Link to integration documentation on our website
https://www.home-assistant.io/integrations/google/
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 a year ago
- Reactions: 2
- Comments: 17 (6 by maintainers)
@theres I don’t have an update, and your last error report includes all that is needed. Next steps are to patch this upstream in the google calendar client library to rewrite the invalid RRULE as a valid rule so that it parses the strict validation checks.