Hi,
I have a similar error: “TypeError: ‘NoneType’ object is not iterable”. I am running home-assistant 0.83.3 using Docker.
device_tracker:
- platform: google_maps
username: !secret google_gps_username
password: !secret google_gps_password
I am using a google account without 2FA that can view the location of a couple of other google accounts. The /config/.google_maps_location_sharing.cookies
was created, but no new devices were created in known_devices.yaml
. Futhermore no new device appears in the Device Activity page.
dec 09 11:23:15 nuc.bachstraat20 docker[13938]: 2018-12-09 11:23:15 INFO (MainThread)
[homeassistant.loader] Loaded device_tracker.google_maps from
homeassistant.components.device_tracker.google_maps
dec 09 11:23:16 nuc.bachstraat20 docker[13938]: 2018-12-09 11:23:16 INFO (MainThread)
[homeassistant.components.device_tracker] Setting up device_tracker.google_maps
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: 2018-12-09 11:23:17 DEBUG (SyncWorker_3) [locationsharinglib.Service] )]}'
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: [null,null,"0ahUKEwjfquDkw5LfAhWQLVAKHWSsC0AQ8ZABCAE","Fe0MXJ_MCZDbwALk2K6ABA",null,null,"GgA\u003d",1800,1544350997170]
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: 2018-12-09 11:23:17 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform google_maps
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: Traceback (most recent call last):
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: File "/usr/src/app/homeassistant/components/device_tracker/__init__.py", line 184, in async_setup_platform
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: disc_info)
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: result = self.fn(*self.args, **self.kwargs)
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: File "/usr/src/app/homeassistant/components/device_tracker/google_maps.py", line 46, in setup_scanner
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: scanner = GoogleMapsScanner(hass, config, see)
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: File "/usr/src/app/homeassistant/components/device_tracker/google_maps.py", line 66, in __init__
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: self._update_info()
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: File "/usr/src/app/homeassistant/components/device_tracker/google_maps.py", line 78, in _update_info
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: for person in self.service.get_all_people():
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 465, in get_all_people
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: people = self.get_shared_people() + [self.get_authenticated_person()]
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 426, in get_shared_people
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: for info in output[0]:
dec 09 11:23:17 nuc.bachstraat20 docker[13938]: TypeError: 'NoneType' object is not iterable
According other post this issue would be already resolved within a previous version of home-assistant, using a newer version of locationsharinglib
. HA 0.83.3 seems to use locationsharinglib
version 3.0.8 (locationsharinglib version 3.0.9 was release 4 days ago.).
[root@nuc config]# docker exec -it 656ca4f5c86b cat /usr/src/app/homeassistant/components/device_tracker/google_maps.py | grep locationsharinglib==
REQUIREMENTS = ['locationsharinglib==3.0.8']
Is there any way how I can resolve this issue? Your help is very much appreciated!
Regards,
Ted