home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.03k stars 29.69k forks source link

Failing to retrive data on Google Calendar #122199

Closed CowboyBootsSP closed 1 month ago

CowboyBootsSP commented 1 month ago

The problem

Since yesterday I cannot read all calendar events from my account on Google using the Google Calendar integration. All the events are normally created at the calendar by Amazon Alexa. There is a glitch with the event type enumeration, as I saw in the log.

What version of Home Assistant Core has the issue?

core-2024.1.3

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

google

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google

Diagnostics information

home-assistant_google_2024-07-19T17-08-05.445Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-07-19 14:13:31.680 ERROR (MainThread) [homeassistant.components.google.calendar] Error fetching xxx@gmail.com data: Error communicating with API: Failed to parse component: 1 validation error for Event
eventType
  value is not a valid enumeration member; permitted: 'default', 'outOfOffice', 'focusTime' (type=type_error.enum; enum_values=[<EventTypeEnum.DEFAULT: 'default'>, <EventTypeEnum.OUT_OF_OFFICE: 'outOfOffice'>, <EventTypeEnum.FOCUS_TIME: 'focusTime'>])

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @allenporter, mind taking a look at this issue as it has been labeled with an integration (google) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google documentation google source (message by IssueLinks)

BenjaminHolland commented 1 month ago

This seems to be a recurring issue. I've found multiple closed bugs where the solution has seemed to be an api version bump?

https://github.com/home-assistant/core/issues/120712

https://github.com/home-assistant/core/pull/120278

BenjaminHolland commented 1 month ago

I updated from 2024.5.5 to 2024.7.3 and that seems to have fixed it. Not sure why it just suddenly broke though.

allenporter commented 1 month ago

Something changed on the Google side where this value started being returned and it was fixed in a newer version. Thanks!