Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load sensor setting dialog entries async #4579

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

jpelgrom
Copy link
Member

Summary

When tapping a sensor setting, load setting dialog entries asynchronously to prevent the app getting an ANR. Show a nice loading dialog as well after a second.

Fixes #4513; tested by manually adding a delay to the loading call.

Screenshots

Loading indicator if loading takes >1s:

Light Dark
Dialog titled 'Allow list' for a sensor setting, with an indeterminate loading indicator in the center, light mode Dialog titled 'Allow list' for a sensor setting, with an indeterminate loading indicator in the center, dark mode

Link to pull request in Documentation repository

n/a

Any other notes

 - When tapping a sensor setting, load setting dialog entries asynchronously to prevent the app getting an ANR. Show a nice loading dialog as well after a second.
@dshokouhi dshokouhi merged commit 4865b10 into home-assistant:master Sep 8, 2024
4 checks passed
@jpelgrom jpelgrom deleted the fix-4513 branch September 8, 2024 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next Alarm sensor - Allow List selection not working
2 participants