I’ve been trying to setup google calendars integration, following the instructions at Google Calendars - Home Assistant.
In the prerequisites section for creating the oauth cress on the developers console, I get to the step for enabling the calendar API but after that nothing matches up with the instructions. I don’t see the link for click ‘Go to credentials’
. so I ignored it. I went on to the step Navigate to APIs & Services (left sidebar) > Credentials
. which worked. Click on the field on the right of the screen, ‘CONFIGURE CONSENT SCREEN’
is also absent for me - I see no options to the right and nothing on the page is even close to this. I don’t see any options for select a support email
either.
So I’m stuck. I’ve been through it 3 times, thinking I’ve missed something. My only thought is my account type is the wrong one - I’m using a GSuite account…
Thanks @allenporter. I did try that but it kept failing with various errors. I eventually swapped over to Chrome and the errors went away and I was able to go through the rest of the process.
I then added the Google Calendar integration, copied and pasted the clientID and secret, which worked this time. I was told to copy the “code” and go to the “link your account page” and pasted the code in, which also reported “success”, so I was looking good. Went back to the integrations page and it looked like it had worked but I then saw the integration showing an error message “Failed to setup, check the logs”.
Logs report:
Logger: homeassistant.config_entries
Source: components/google/__init__.py:420
First occurred: 5:37:52 PM (1 occurrences)
Last logged: 5:37:52 PM
Error setting up entry [email protected] for google
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 251, in async_setup_entry
await async_setup_services(hass, calendar_service)
File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 287, in async_setup_services
calendars = await hass.async_add_executor_job(
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/__init__.py", line 420, in load_config
for calendar in data:
TypeError: 'NoneType' object is not iterable
Should I raise a GH issue?
Yeah that.eould be great. Do you have a google_calendars.ysml file in config/?
Yes, I had an empty google_calendars.yaml
file - I deleted it and did a restart and the calendar integration worked. Thanks for the pointer.