hemantkamalakar / google_fit_hass

A Home assistant custom component to get your fitness information using Google Fitness API.
25 stars 6 forks source link

Not working #1

Closed StefanoGiu closed 3 years ago

StefanoGiu commented 4 years ago

2020-04-17 17:09:56 ERROR (MainThread) [homeassistant.components.sensor] google_fit: Error on device update! Traceback (most recent call last): File "C:\Python38\lib\site-packages\homeassistant\helpers\entity_platform.py", line 312, in _async_add_entity await entity.async_device_update(warning=False) File "C:\Python38\lib\site-packages\homeassistant\helpers\entity.py", line 476, in async_device_update await self.hass.async_add_executor_job(self.update) File "C:\Python38\lib\concurrent\futures\thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "C:\Python38\lib\site-packages\homeassistant\util__init.py", line 240, in wrapper result = method(*args, **kwargs) File "C:\Python38\lib\site-packages\homeassistant\util\init__.py", line 240, in wrapper result = method(*args, kwargs) File "C:\Users\stefa\AppData\Roaming.homeassistant\custom_components\google_fit\sensor.py", line 568, in update for point in self._get_dataset(self.DATA_SOURCE)["point"]: File "C:\Users\stefa\AppData\Roaming.homeassistant\custom_components\google_fit\sensor.py", line 330, in _get_dataset return self._client.users().dataSources(). \ AttributeError: 'NoneType' object has no attribute 'users'

hemantkamalakar commented 4 years ago

Hello, Please make sure that the _googlefit.token is generated in your config folder and you have followed the steps mentioned here https://www.home-assistant.io/integrations/calendar.google#prerequisites

StefanoGiu commented 4 years ago

I followed the instructions... I have a token but I get the error above...

hemantkamalakar commented 4 years ago

Please make sure that you can see data using the Google Fitness API. https://developers.google.com/fit/rest/v1/reference/ https://developers.google.com/oauthplayground/

hemantkamalakar commented 3 years ago

Closing since there is no activity on this issue.