-
- Downloads
Consider the zone radius in proximity distance calculation (#138819)
* Fix proximity distance calculation The distance is now calculated to the edge of the zone instead of the centre * Adjust proximity test expectations to corrected distance calculation * Add proximity tests for zone changes * Improve comment on proximity distance calculation Co-authored-by:Michael <35783820+mib1185@users.noreply.github.com> * Apply suggestions from code review --------- Co-authored-by:
Michael <35783820+mib1185@users.noreply.github.com>
Showing
- homeassistant/components/proximity/coordinator.py 8 additions, 3 deletionshomeassistant/components/proximity/coordinator.py
- tests/components/proximity/snapshots/test_diagnostics.ambr 4 additions, 4 deletionstests/components/proximity/snapshots/test_diagnostics.ambr
- tests/components/proximity/test_init.py 121 additions, 29 deletionstests/components/proximity/test_init.py
Loading
Please register or sign in to comment