Issue with some accounts
See original GitHub issueHello,
I’m setting this for my home assistant installation, the bug i’m having is probably not related to home assistant implementation.
I have 3 google accounts : A, B and C. A shares its location to B and C.
When i use this library with B account : no problem When i use this library with C account : here is what i got
2018-04-07 19:01:24 ERROR (SyncWorker_4) [locationsharinglib.Service] Response: [None, None, '0ahUKXXXXXXXXXXXXXXXZABCAE', 'ZPnXXXXXXXXXXXXXXXM', None, None, 'CNzzo9YFEXXXXXXXXXXXXXXXiPTej1Wi+jUMNTYVBYXdS0KXXXXXXXXXXXXXXXktIgY6juslw==', 1800, 1523120484424, [-869868227, [None, [None, -0.856X868, 43.855X333], 1523120352491, 12, '10 Rue tulipes, 53400 Awesome, France', None, 'FR', 7200000]], None, [0]] Traceback (most recent call last): File "/config/deps/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 292, in get_shared_people people = [Person(info) for info in output[0]] TypeError: 'NoneType' object is not iterable
B is an older account, C was created today.
Something wierd tho : on https://myaccount.google.com/device-activity page i cannot see the script accessing my C account.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
No worries 😃 closing this.
Apologies, after enabling background updates for maps on the iphone the error went away after a restart of HA and I did not save the log… 😵 Was using 1.2.1 after “pip install --upgrade locationsharinglib” which still threw the error in the log, but I see yesterdays commits might indeed fix the error.
The issue remains that HA would still report the last known location, while “offline” in google maps should probably translate into an “unknown” location for HA. But that might be something for the component in HA to actually handle…