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
74.18k stars 31.15k forks source link

Bug with Google Calendar integration #105433

Closed ndbroadbent closed 11 months ago

ndbroadbent commented 11 months ago

The problem

I am seeing this error in the logs:

Error fetching Nathan - DocSpring data: Error communicating with API: Failed to parse component: 1 validation error for Event attendees -> 0 CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)
Error fetching Nathan - Personal data: Error communicating with API: Failed to parse component: 1 validation error for Event attendees -> 0 CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)
Error fetching DocSpring - Calendly Calls data: Error communicating with API: Failed to parse component: 1 validation error for Event attendees -> 0 CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)
Error fetching Masha data: Error communicating with API: Failed to parse component: 1 validation error for Event attendees -> 1 CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)

Sorry I'm not sure what events might be causing this. Another thing to note is that these are calendars from a different account that I've shared with this account. Although I've shared more calendars from other accounts as well, and they work fine.

What version of Home Assistant Core has the issue?

core-2023.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Google Calendar

Link to integration documentation on our website

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

Diagnostics information

config_entry-google-df404efbbd99616efe142e9250298afc.json.txt

home-assistant_google_2023-12-10T09-30-32.695Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-12-10 22:30:21.994 DEBUG (SyncWorker_39) [homeassistant.components.google] Error reading calendar configuration: [Errno 2] No such file or directory: '/config/google_calendars.yaml'
2023-12-10 22:30:23.412 DEBUG (SyncWorker_9) [homeassistant.components.google] Error reading calendar configuration: [Errno 2] No such file or directory: '/config/google_calendars.yaml'
2023-12-10 22:30:24.105 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching AUT Breaks data in 0.661 seconds (success: True)
2023-12-10 22:30:24.201 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Events data in 0.755 seconds (success: True)
2023-12-10 22:30:24.222 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Mariya Broadbent's Facebook events data in 0.776 seconds (success: True)
2023-12-10 22:30:24.226 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Holidays in Russia data in 0.781 seconds (success: True)
2023-12-10 22:30:24.230 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Focus data in 0.784 seconds (success: True)
2023-12-10 22:30:24.240 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Nathan Broadbent's Facebook Events data in 0.794 seconds (success: True)
2023-12-10 22:30:24.243 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Masha Sulimenko Calendar (Canvas) data in 0.797 seconds (success: True)
2023-12-10 22:30:24.244 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Finances data in 0.798 seconds (success: True)
2023-12-10 22:30:24.245 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Todoist data in 0.799 seconds (success: True)
2023-12-10 22:30:24.254 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Family data in 0.808 seconds (success: True)
2023-12-10 22:30:24.267 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching TV Schedule data in 0.821 seconds (success: True)
2023-12-10 22:30:24.267 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching RescueTime data in 0.821 seconds (success: True)
2023-12-10 22:30:24.267 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Nathan - Private data in 0.821 seconds (success: True)
2023-12-10 22:30:24.270 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Car Maintenance data in 0.824 seconds (success: True)
2023-12-10 22:30:24.278 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Trello - DocSpring data in 0.832 seconds (success: True)
2023-12-10 22:30:24.286 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Organization: DocSpring data in 0.840 seconds (success: True)
2023-12-10 22:30:24.287 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Owner: Nathan Broadbent data in 0.841 seconds (success: True)
2023-12-10 22:30:24.288 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Songkick: Your Plans (ndbroadbent) data in 0.842 seconds (success: True)
2023-12-10 22:30:24.292 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Holidays in United States data in 0.848 seconds (success: True)
2023-12-10 22:30:24.296 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching DocSpring OOO data in 0.850 seconds (success: True)
2023-12-10 22:30:24.298 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Holidays in New Zealand data in 0.853 seconds (success: True)
2023-12-10 22:30:24.304 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Trello - Personal data in 0.858 seconds (success: True)
2023-12-10 22:30:24.309 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Family data in 0.863 seconds (success: True)
2023-12-10 22:30:24.311 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching FormAPI - Calendly Calls data in 0.865 seconds (success: True)
2023-12-10 22:30:24.312 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Todoist data in 0.866 seconds (success: True)
2023-12-10 22:30:24.312 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Nathan - FormAPI data in 0.866 seconds (success: True)
2023-12-10 22:30:24.323 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Birthdays data in 0.877 seconds (success: True)
2023-12-10 22:30:24.325 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Nathan Broadbent (Toptal) data in 0.879 seconds (success: True)
2023-12-10 22:30:24.368 ERROR (MainThread) [homeassistant.components.google.calendar] Error fetching Nathan - DocSpring data: Error communicating with API: Failed to parse component: 1 validation error for Event
attendees -> 0
  CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)
2023-12-10 22:30:24.368 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Nathan - DocSpring data in 0.923 seconds (success: False)
2023-12-10 22:30:24.377 ERROR (MainThread) [homeassistant.components.google.calendar] Error fetching DocSpring - Calendly Calls data: Error communicating with API: Failed to parse component: 1 validation error for Event
attendees -> 0
  CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)
2023-12-10 22:30:24.377 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching DocSpring - Calendly Calls data in 0.931 seconds (success: False)
2023-12-10 22:30:24.529 ERROR (MainThread) [homeassistant.components.google.calendar] Error fetching Nathan - Personal data: Error communicating with API: Failed to parse component: 1 validation error for Event
attendees -> 0
  CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)
2023-12-10 22:30:24.530 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Nathan - Personal data in 1.084 seconds (success: False)
2023-12-10 22:30:24.539 ERROR (MainThread) [homeassistant.components.google.calendar] Error fetching Masha data: Error communicating with API: Failed to parse component: 1 validation error for Event
attendees -> 1
  CalendarBaseModel.__init__() got multiple values for argument 'self' (type=type_error)
2023-12-10 22:30:24.539 DEBUG (MainThread) [homeassistant.components.google.calendar] Finished fetching Masha data in 1.096 seconds (success: False)


### Additional information

_No response_
home-assistant[bot] commented 11 months 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)

ndbroadbent commented 11 months ago

Sorry this was fixed in 2023.12.1. Duplicate of #105075