Hi everyone,
I’m trying to integrate Google Calendar to Home Assistant. Everything is working well until I reach the Oauth and Device Authorization steps. After I copy the code into Google’s page, I succeed to authorize however when I go back to Home Assistant, I get the following message:
Checking the logs I have the following entries:
Logger: aiohttp.server
Source: components/google/config_flow.py:148
First occurred: 12:36:03 (1 occurrences)
Last logged: 12:36:03
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 171, in get
return await super().get(request, flow_id)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 96, in get
result = await self._flow_mgr.async_configure(flow_id)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/google/config_flow.py", line 130, in async_step_creation
return await super().async_step_creation(user_input)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 314, in async_step_creation
return await self.async_oauth_create_entry(
File "/usr/src/homeassistant/homeassistant/components/google/config_flow.py", line 148, in async_oauth_create_entry
primary_calendar = await calendar_service.async_get_calendar("primary")
File "/usr/local/lib/python3.10/site-packages/gcal_sync/api.py", line 330, in async_get_calendar
return Calendar.parse_obj(result)
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Calendar
accessRole
field required (type=value_error.missing)
Could you please help me solve this issue?
Thanks!