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

Fix geocoded crash, report expected minimum accuracy for location #832

Merged
merged 3 commits into from Aug 27, 2020

Conversation

dshokouhi
Copy link
Member

Fixes: #830

Also fixes a edge case where sometimes we were sending an invalid gps_accuracy attribute which was less than 0.

Example error from HA: Received invalid webhook payload: value must be at least 0 for dictionary value @ data['gps_accuracy']. Got -2147478 and Received invalid webhook payload: value must be at least 0 for dictionary value @ data['gps_accuracy']. Got -2147471

During these errors all updates do not come through so when we detect that accuracy >= 0 we will send the real value, otherwise we will send 0 which is the bare minimum that HA will accept

@dshokouhi dshokouhi changed the title Fix geocoded crash, report minimum accuracy for location Fix geocoded crash, report expected minimum accuracy for location Aug 27, 2020
@JBassett JBassett mentioned this pull request Aug 27, 2020
@JBassett JBassett added bug Something isn't working patch A tiny change - Bumps patch build number labels Aug 27, 2020
@JBassett JBassett merged commit e6f2e58 into home-assistant:master Aug 27, 2020
anyuta1166 added a commit to anyuta1166/android that referenced this pull request Aug 27, 2020
Fix geocoded crash, report expected minimum accuracy for location (home-assistant#832)
@dshokouhi dshokouhi deleted the location_geocoded_fixes branch September 2, 2020 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla-signed patch A tiny change - Bumps patch build number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal crash for geocoded sensor
3 participants