core: Google Maps - Error setting up platform (since 91.4)

Home Assistant release with the issue: image

Last working Home Assistant release (if known): N/A

Operating environment (Hass.io/Docker/Windows/etc.): Docker, on a NUC running Ubuntu

Component/platform: https://www.home-assistant.io/components/google_maps/

Description of problem: Google Maps platform doesn’t set up but i see the .google_maps_location_sharing.cookies being made in my Home Assistant folder

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

#**********************************************************
#* Google
#**********************************************************
#https://www.home-assistant.io/components/device_tracker.google_maps/
  - platform: google_maps
    max_gps_accuracy: 75
    username: !secret google_maps_username
    password: !secret google_maps_password

Traceback (if applicable):

Log Details (ERROR)
Wed Apr 24 2019 16:20:05 GMT+0200 (Midden-Europese zomertijd)
Error setting up platform google_maps
Traceback (most recent call last):
  File "/usr/src/app/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/src/app/homeassistant/components/google_maps/device_tracker.py", line 46, in setup_scanner
    scanner = GoogleMapsScanner(hass, config, see)
  File "/usr/src/app/homeassistant/components/google_maps/device_tracker.py", line 67, in __init__
    self._update_info()
  File "/usr/src/app/homeassistant/components/google_maps/device_tracker.py", line 79, 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

Additional information: Was looking of renaming the cookie file would solve it but it didn’t what was mentioned here -> https://github.com/home-assistant/home-assistant/issues/21733

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 32 (15 by maintainers)

Most upvoted comments

I appreciate your work to make thing possible and share. When others missunderstood your documentation, please dont say other does not read. Simple explanation would really help. Look at people here, they dont know how to install your requirements(be it raspian or hass.io). We definitely dont understand. Then again this is about home assistant google map not working and not 3rd party component. I shall stop responding about it. Back original statement. 0.92.2 google maps works if your google account turn off 2fa.

Still not working here without 2FA turned on

Remember to remove your .google cookie file before you start this

(DO NOT DO THIS UNLESS YOU UNDERSTAND WHAT IT IS) try delete your known device from your google page. go to https://myaccount.google.com/u/2/security under ‘Less secure app access’, turn on.