core: Google Calendars Integration does not work anymore after upgrading to 2022.4.0

The problem

Google Calendars integration doesn’t work anymore. The calendar entitites aren’t available after upgrading.

What version of Home Assistant Core has the issue?

core-2022.4.0

What was the last working version of Home Assistant Core?

core-2022.3.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Calendars

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

google:
  client_id: !secret google_client_id
  client_secret: !secret google_client_secret

Anything in the logs that might be useful for us?

2022-04-07 22:30:17 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up google platform for calendar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 76, in async_setup_entry
await hass.services.async_call(DOMAIN, SERVICE_SCAN_CALENDARS, blocking=True)
File "/usr/src/homeassistant/homeassistant/core.py", line 1634, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1671, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 246, in _scan_for_calendars
calendars = await calendar_service.async_list_calendars()
File "/usr/src/homeassistant/homeassistant/components/google/api.py", line 204, in async_list_calendars
return await self._hass.async_add_executor_job(_list_calendars)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/google/api.py", line 202, in _list_calendars
return cal_list.list().execute()["items"]
File "/usr/local/lib/python3.9/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/googleapiclient/http.py", line 922, in execute
resp, content = _retry_request(
File "/usr/local/lib/python3.9/site-packages/googleapiclient/http.py", line 190, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/oauth2client/transport.py", line 186, in new_request
credentials._refresh(orig_request_method)
File "/usr/local/lib/python3.9/site-packages/oauth2client/client.py", line 749, in _refresh
self._do_refresh_request(http)
File "/usr/local/lib/python3.9/site-packages/oauth2client/client.py", line 819, in _do_refresh_request
raise HttpAccessTokenRefreshError(error_msg, status=resp.status)
oauth2client.client.HttpAccessTokenRefreshError: unauthorized_client: Unauthorized

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (10 by maintainers)

Commits related to this issue

Most upvoted comments

for me 2o22.4.0 is working but 2022.4.1 no entries from the calendars roll back to 2022.4.0 was successful (i think there was a log entry about an invalid time stamp sorry to be vague.