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

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

Open
kingozone opened this issue Dec 18, 2022 · 1 comment
Open

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

kingozone opened this issue Dec 18, 2022 · 1 comment

Comments

@kingozone
Copy link

kingozone commented Dec 18, 2022

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
Copy link

I have the same issue.

@jellewie jellewie mentioned this issue Apr 26, 2023
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