Google Calendar: Received invalid token data

Unable to set up Google Calendar. It gives me “Received invalid token data” even before I can enter any credentials (the OAUTH data). Configuration.yaml does not contain any Google auth. Restart doesn’t help.

“Log: Error initializing device flow: Invalid response 401. Error: invalid_client”

Bug? HA 2022.6.5. Thanks.

1 Like

This means the oauth client id is incorrect, or may be the wrong type (e.g. not tv / device credentials). I’d suggest retracing through the setup instructions.