home-assistant-google_fit: 'invalid_client' on restart

I already have a couple of other Google integrations (Calendar and TTS). I added the Fitness API to my Home Assistant project on the Cloud Console. When I restart Home Assistant this is the error I get in notifications.

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

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 21 (3 by maintainers)

Commits related to this issue

Most upvoted comments

The two scopes are valid scopes and have same auth requirements as the others, so not sure what the issue is yet… I guess all need to be rewritten to use newer > v1 API

I managed to fix invalid scope error with deleting heart_rate and sleep scopes from sensor.py. After that I just changed time zone and token was received. I know that @cyberjunky got correct scopes list from https://developers.google.com/identity/protocols/oauth2/scopes#fitness But it’s not work normally with authorization string for some reason изображение