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.

Widget update when screen on while not connected

See original GitHub issue

Home Assistant Android version: beta-482-b97a69a Android version: 10 Phone model: OnePlus 6t Home Assistant version: 0.117 Last working Home Assistant release (if known):

Description of problem: Following PR #1115 every time the screen is unlocked while there is no connection to HA the entity widget shows ‘null’ and a toast notification is displayed saying: unable to fetch data for configured entity. I recommend that the widget only gets updated when the screen turns on if there is a connection to HA. Otherwise it should keep the last value (perhaps with an indication that this is not up to date). As for the toast notification I don’t recommend displaying it every time the screen turns on.

Traceback (if applicable):


Screenshot of problem:

Additional information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
theCheekcommented, Nov 8, 2020

@theCheek and @EdwinekVG if you go into App Configuration -> Manage Widgets do you see widgets listed there? If you don’t have any widgets this should be empty, if you see records open and delete them.

Thanks for this. Yes I had one widget listed there that I must have added to my home screen a while back but then removed. The toast seems to have stopped now so all good.

1reaction
teemujalonencommented, Dec 2, 2020

Yeah, I removed my widgets already. Toast is so annoying

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update an Android Widget when the screen is turned ON
The playNotification() plays an alarm. It works properly inside the widget. But when I switch the screen ON and OFF, nothing happens. UPDATE...
Read more >
Top 8 Ways to Fix Widgets Not Updating on Android
Widgets not updating on Android? Check out this troubleshooting guide to overcome widget-related issues on Android.
Read more >
10 Quick Fixes for When Widgets Aren't Working on Your ...
10 Quick Fixes for When Widgets Aren't Working on Your iPhone or iPad · 1. Restart Your iPhone or iPad · 2. Update...
Read more >
Home screen widgets not updating - Apple Community
Hello. After updating to iOS 16 all all widgets that should be updated every second stopped working. They are not updating.
Read more >
How To Fix Widgets Not Updating On Android - The Droid Guy
The first thing to do if your particular widget does not update is to check for stable internet connection. Select widgets need to...
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