Google Calendar API disabled error message can be improved
See original GitHub issueThe problem
After upgrading to 2022.11.2 the Google Calendar integration stopped functioning. I deleted the integration and attempted to reinstall it, however, now it gets to the last step (Google has me allow access for HA) and returns just “Error” - no other message.
I we to another instance of HA I have running on 2022.11.0 and the integration was functioning properly. I removed and reinstalled the integration with no problem. I then updated this instance to 2022.11.2 and found the same issue - the integration was not functioning, and deleting and attempting a reinstall failed with the same ‘Error’.
What version of Home Assistant Core has the issue?
2022.11.2
What was the last working version of Home Assistant Core?
2022.11.0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Google Calendar
Link to integration documentation on our website
https://www.home-assistant.io/integrations/google/
Diagnostics information
Can not provide diagnostics information as the integration will not install.
Example YAML snippet
None as the integration will not install.
Anything in the logs that might be useful for us?
Not that I can see. However, I am not versed in Home Assistant OS logs outside of the Log section in the UI under settings. I will be happy to provide anything you need if you can direct me to the location of log files you require.
Additional information
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
Error log reads: “Error reading primary calendar: Error from API: 403: PERMISSION_DENIED: Google Calendar API has not been used in project [XXXXX] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=[XXXXX] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.: Forbidden”
The Google Calendar API has not been automatically enabled and in Cloud Console API Library I had to enable it manually. This resolved the issue.
It worked after the update in both of my Home Assistant instances.