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
73.3k stars 30.61k forks source link

Google Calendar: Error fetching - eventType value is not valid #129678

Closed janci007 closed 42 minutes ago

janci007 commented 2 hours ago

The problem

Hello, my Google calendar is not loading in Home Assistant, I guess it is caused by "birthday" events that are not valid for EventTypeEnum, see here for list of valid event types: https://developers.google.com/calendar/api/v3/reference/events#eventType

2024-11-02 08:31:18.511 ERROR (MainThread) [homeassistant.components.google.coordinator] Error fetching <redacted> 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', 'workingLocation', 'fromGmail' (type=type_error.enum; enum_values=[<EventTypeEnum.DEFAULT: 'default'>, <EventTypeEnum.OUT_OF_OFFICE: 'outOfOffice'>, <EventTypeEnum.FOCUS_TIME: 'focusTime'>, <EventTypeEnum.WORKING_LOCATION: 'workingLocation'>, <EventTypeEnum.FROM_GMAIL: 'fromGmail'>])

What version of Home Assistant Core has the issue?

core-2024.9.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Google Calendar

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

home-assistant[bot] commented 2 hours 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)

allenporter commented 42 minutes ago

Hi, this should be fixed in 2024.10.3 and beyond. Marking as duplicate of #128085