Hey All,
First off: Great platform, nice update frequency and yes I fully understand (and accept) that an open source platform such as this will have it’s hickups from time to time.
After the upgrade to 0.80 my Google Maps Location sharing isn’t working anymore. It’s either keeping the last known location from before the update or it gives an error:
Error setting up platform google_maps
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 109, in _populate
self._charging = data[13][0]
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 184, in async_setup_platform
disc_info)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py", line 46, in setup_scanner
scanner = GoogleMapsScanner(hass, config, see)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py", line 66, in __init__
self._update_info()
File "/usr/local/lib/python3.6/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.6/site-packages/locationsharinglib/locationsharinglib.py", line 459, in get_all_people
people = self.get_shared_people() + [self.get_authenticated_person()]
File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 451, in get_authenticated_person
None,
File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 95, in __init__
self._populate(data)
File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 113, in _populate
raise InvalidData
locationsharinglib.locationsharinglibexceptions.InvalidData
I have rebooted (and powercycled) numerous times to no avail. Any suggestions would be very much apprectiated, since most automations use these locations either as trigger or condition.
MG
Addition (14-10-2018 / 13:42):
I notice that the file /config/.google_maps_location_sharing.cookies has the following line in it:
‘utf-8’ codec can’t decode byte 0x80 in position 0: invalid start byte
I deleted the cookies file and restarted. No result…