Add zone related sensors in proximity (#109630)

* move legacy needed convertions into legacy entity

* add zone related sensors

* fix test coverage

* fix typing

* fix entity name translations

* rename placeholder to tracked_entity
This commit is contained in:
Michael 2024-02-05 00:42:07 +01:00 committed by GitHub
parent a95a51da05
commit ffe9f0825a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 193 additions and 31 deletions

View file

@ -9,6 +9,8 @@ ATTR_DIST_TO: Final = "dist_to_zone"
ATTR_ENTITIES_DATA: Final = "entities_data"
ATTR_IN_IGNORED_ZONE: Final = "is_in_ignored_zone"
ATTR_NEAREST: Final = "nearest"
ATTR_NEAREST_DIR_OF_TRAVEL: Final = "nearest_dir_of_travel"
ATTR_NEAREST_DIST_TO: Final = "nearest_dist_to_zone"
ATTR_PROXIMITY_DATA: Final = "proximity_data"
CONF_IGNORED_ZONES = "ignored_zones"