Error setting up platform google_maps / TypeError: 'NoneType' object is not iterable
See original GitHub issueI am trying to make google_maps tracking to work on hass.io (Raspberry pi). I get the “TypeError: ‘NoneType’ object is not iterable” error.
I am aware that there are a lot of mentions of this and simular issues. But all is in the closed issues and no solutions are presented. So I open this as a new issue.
Google account
Created new google account and shared tracked user’s position to the new user. Logging into maps.google.com with the new user shows the position of the tracked user. 2-factor logon have been disabled.
configuration.yaml
device_tracker:
- platform: google_maps username: xxx@yyy.zz password: xyz
The log
When hass.io boots I get this in the log:
Error setting up platform google_maps
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/__init__.py", line 184, in async_setup_platform
disc_info)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/google_maps.py", line 46, in setup_scanner
scanner = GoogleMapsScanner(hass, config, see)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/google_maps.py", line 66, in __init__
self._update_info()
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/google_maps.py", line 78, in _update_info
for person in self.service.get_all_people():
File "/usr/local/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 439, in get_all_people
people = self.get_shared_people() + [self.get_authenticated_person()]
File "/usr/local/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 400, in get_shared_people
for info in output[0]:
TypeError: 'NoneType' object is not iterable
Possible issues…
When logging into maps.google.com as the new user (on a pc), Google asks me to validate the device by sending me a text message. When I do that I get access… AND - this is despite the fact that 2-factor is disabled…
I am wondering if this could be related to the problem?
In the google account / security / your devices there is no mention of the Raspberry pi…
I hope someone can help…
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Hi all, I have created an alpha of a cookiegetter project that drives a browser through selenium and saves the cookies. Please look at https://github.com/costastf/mapscookiegettercli/blob/master/USAGE.rst for usage (it is quite simple 😃 ) and report issues at the tracker.
I have removed the authentication part from locationsharinglib and uploaded version 4 with those changes. I have made a proof of concept project that drives a browser via selenium and saves the cookies in a compatible with locationsharinglib format. If anyone wants to try out the POC and very crud version because they are feeling adventurous you can follow the documentation at the end of the page https://github.com/costastf/mapscookiegettercli/blob/initial-usability/USAGE.rst . This is heavily a work in progress and only works for chrome currently, tested only on Mac (but i guess linux should also work) so please do not start creating issues just yet, unless you also want to contribute. I am planing to clean it up and and make it nicer during the upcoming weekends. I am hoping to have a somewhat properly working version out after the coming weekend supporting chrome for all latest version of Mac, Linux and Windows. Of course if anyone is interested in helping out, all help is welcome!