You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Google Calendar integration has a setting max_results, which is 5 by default. When fetching the events for a date interval, it fetches at most max_results events, silently skipping others. This issue has bothered several users, see the community.
Though this is apparently by design, it's not what users expect and it's easy to fix. See "Additional information" below. I'm willing to contribute a fix.
What is version of Home Assistant Core has the issue?
core-2021.8.1
What was the last working version of Home Assistant Core?
The max_results setting is passed to the Google Calendar Events list API. That API applies 250 as a default value. If Home Assistant would use that same value, a lot less users would face an issue with missing entries.
Even better would be to make Home Assistant iterate through the pages, based on the nextPageToken that's returned when a next page exists.
I'm willing to contribute a fix but as I'm new to Home Assistant, I would like to hear from the code owner whether the above approach is valid or whether higher layers (e.g. the CalendarEventDevice base class) would have an issue with a significant number of events is returned.
The text was updated successfully, but these errors were encountered:
The problem
The Google Calendar integration has a setting
max_results
, which is 5 by default. When fetching the events for a date interval, it fetches at mostmax_results
events, silently skipping others. This issue has bothered several users, see the community.Though this is apparently by design, it's not what users expect and it's easy to fix. See "Additional information" below. I'm willing to contribute a fix.
What is version of Home Assistant Core has the issue?
core-2021.8.1
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 Calendar Event
Link to integration documentation on our website
https://www.home-assistant.io/integrations/calendar.google/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The
max_results
setting is passed to the Google Calendar Eventslist
API. That API applies 250 as a default value. If Home Assistant would use that same value, a lot less users would face an issue with missing entries.Even better would be to make Home Assistant iterate through the pages, based on the
nextPageToken
that's returned when a next page exists.I'm willing to contribute a fix but as I'm new to Home Assistant, I would like to hear from the code owner whether the above approach is valid or whether higher layers (e.g. the
CalendarEventDevice
base class) would have an issue with a significant number of events is returned.The text was updated successfully, but these errors were encountered: