Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

googleapiclient.errors.UnknownApiNameOrVersion: name: fitness version: v1 #21

Closed
syphernl opened this issue Apr 8, 2022 · 3 comments
Closed

Comments

@syphernl
Copy link

syphernl commented Apr 8, 2022

It seems that this integration is no longer working with HASS 2022.4:

Traceback (most recent call last):
  File "/srv/hass/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/hass/.homeassistant/custom_components/google_fit/sensor.py", line 180, in setup_platform
    client = _get_client(token_file)
  File "/home/hass/.homeassistant/custom_components/google_fit/sensor.py", line 103, in _get_client
    service = google_discovery.build(
  File "/srv/hass/lib/python3.9/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
  File "/srv/hass/lib/python3.9/site-packages/googleapiclient/discovery.py", line 287, in build
    service = json.loads(content)
  File "/srv/hass/lib/python3.9/site-packages/googleapiclient/discovery.py", line 404, in _retrieve_discovery_doc
    if schema_type == 'string':
googleapiclient.errors.UnknownApiNameOrVersion: name: fitness  version: v1
@janfajessen
Copy link

Same for me, Google Fit don't work in last 2022.4 version

@syphernl
Copy link
Author

It's a bit weird because according to the docs v1 is the only API for Google Fit 🤔

https://developers.google.com/fit/rest/v1/get-started

@syphernl
Copy link
Author

And all of a sudden (or perhaps after 2022.4.3 the sensors are working again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants