Adding google calendar to HA

after adding google calendar to HA
and restart i get google calendar setup notification

Error: Invalid response 401. Error: deleted_client
You will need to restart hass after fixing.

can somebody explain
what does it means

Refael

can you share how you added Google Calendar? What’s your config? (hide email and password)

my configuration.yaml is
google:
client_id: xxxxxxxxxxxx.apps.googleusercontent.com
client_secret: _xxxxxxxxxxxx

now i looked and i dont have
google_calendars.yaml

maybe i didnt configure the API correctly in
Google Developers Console ?

whats the right way to configure

Thanks
Refael

can you use the blue bar on top of the page to format your code correctly? At the moment I can’t see if there are indentation errors or not.
you should indeed have a google_calendars.yaml file automatically created upon successful link/config.
If not you may want to review the setup steps in the doc again, sounds like you might have missed something

I’m going to break in here to ask a related question. I get this error at startup:

homeassistant.exceptions.HomeAssistantError: Entity id already exists: calendar.contacts

I’m using the atomic.calendar custom card, but don’t have the contacts calendar configured for the card. However, the contacts.calendar does appear in the google_calendars.yaml file.

- cal_id: '#[email protected]'
  entities:
  - device_id: contacts
    ignore_availability: true
    name: Contacts
    track: true