cyberjunky / home-assistant-google_fit

:hearts: This component tracks your Google Fit activities.
MIT License
99 stars 20 forks source link

AttributeError: 'NoneType' object has no attribute 'authorize' #31

Open kingozone opened 1 year ago

kingozone commented 1 year ago

I'm having this issue after copying the google_fit.token to config after finding the solution to the 'invalid scope' error this plugin shows after initial installation. Any ideas of how to resolve? It seems like this plugin and the many variants it's forked from just don't work. I'm familiar with YAML and some basic python, but I'm no regular coder so I'm not sure where to begin.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/google_fit/sensor.py", line 176, in setup_platform client = _get_client(token_file) File "/config/custom_components/google_fit/sensor.py", line 98, in _get_client http = credentials.authorize(httplib2.Http()) AttributeError: 'NoneType' object has no attribute 'authorize'

dkalinai commented 1 year ago

I have the same issue.