question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version of the custom_component

Latest master branch

Describe the bug

When performing google requests to fetch tokens we should provide one and the same android_id, without generating a new id every time. If we do - it will look like dozens of different devices are connected to the same account that might lead to unexpected authentication problems. We already have some mitigation in the underlying glocaltokens python package, but we need a more robust mechanism, because now when Homeassistant restarts it will also restart glocaltokens instance wiping away stored android_id that will lead to fetching a new one.

We are already saving android_id in the integration config flow (CONF_ANDROID_ID: await client.get_android_id()), but we never use it. We should either introduce set_android_id() method in underlying glocaltokens that we would call every sensor update cycle (just to be sure) or pass that value when calling get_google_devices.

@ArnyminerZ, would you have any interest in picking it? 🙏 🥇 😄

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leikoiljacommented, Mar 7, 2021

That’s an awesome attitude, @DurgNomis-drol! 🚀

1reaction
DurgNomis-drolcommented, Mar 7, 2021

No problem 😄 I learn a lot from these things, so i didn’t waste any time

Read more comments on GitHub >

github_iconTop Results From Across the Web

20 great uses for an old Android device | Computerworld
We all love getting new gadgets, but what to do with the old ones? Here are 20 clever ways to put your old...
Read more >
8 easy ways to reuse your old Android phone or tablet
8 easy ways to reuse your old Android phone or tablet · Use your old phone as a universal remote · Turn it...
Read more >
Turn Your Android Into a Google Home and More. Here's How
Repurpose your old Android phone to become your new wireless mouse, photo storage device or even a Nintendo Game Boy.
Read more >
11 Ways to Repurpose an Old Phone or Tablet - Lifehacker
You can even download apps that will help your smartphone feel more like a dedicated dashcam, such as Driver for iOS and Android....
Read more >
What To Do With Old Smartphones? 15 Genius Reuse Ideas
If you have an unused smartphone, be it an iPhone or an Android phone, there are many cool things you can do with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found