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

Move away from runBlocking and fix some bugs in geofence updates and clearing notification #3409

Merged

Conversation

dshokouhi
Copy link
Member

Summary

Fixes a few ANRs I saw in the play console around geofence updates and notification cleared event.

Fixes some bugs around evaluating the incorrect sensor in geofence updates (discovered during testing of this PR)

Removes toast notification on failed events

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

@jpelgrom
Copy link
Member

jpelgrom commented Mar 8, 2023

The single accurate location callback also uses the main thread + runBlocking, maybe update that in this PR as well as the geofence callback is updated?

@dshokouhi
Copy link
Member Author

The single accurate location callback also uses the main thread + runBlocking, maybe update that in this PR as well as the geofence callback is updated?

The single accurate location sensor changes seemed a bit more involved so I did not opt to change them here.

Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me (location) and tested (notifications)

@JBassett JBassett merged commit 52c2f3a into home-assistant:master Mar 10, 2023
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.

Geofence-only updates to device tracker break in multi-server beta
3 participants