core/tests/components/proximity
Philipp S 7f494c235c
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>
2025-02-24 09:28:23 +01:00
..
snapshots Consider the zone radius in proximity distance calculation (#138819) 2025-02-24 09:28:23 +01:00
__init__.py Move components to folders (#20774) 2019-02-05 19:31:15 -08:00
conftest.py Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
test_config_flow.py
test_diagnostics.py Add created_at/modified_at to config entries (#122456) 2024-07-29 22:08:46 +02:00
test_init.py Consider the zone radius in proximity distance calculation (#138819) 2025-02-24 09:28:23 +01:00