* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
* 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
* add config flow
* fix tests
* adjust and fix tests
* fix tests
* config_zones as fixture
* add config flow tests
* use coordinator.async_config_entry_first_refresh
* use entry.entry_id for hass.data
* fix doc string
* remove unused unit_of_measurement string key
* don't store friendly_name, just use self.name
* abort on matching entiry
* break out legacy setup into seperate function
* make tracked entites required
* move _asnyc_setup_legacy to module level
* use zone name as config entry title
* add entity_used_in helper
* check entry source if imported
* create repair issue for removed tracked entities
* separate state change from registry change event handling
* migrate unique ids after tracked entity renamed
* use full words for the variable names
* use defaultdict
* add test
* remove unnecessary if not in check
* use unique_id of tracked entity
* use the entity registry entry id
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* add sensor platform
* transl. of distance already covered by dev.class
* add untested files to .coveragerc
* add missing state translations
* remove translation key for distance sensor
* proximity entity do not use HA number system
* fix
* extend tests
* make const final to be usable as key for TypedDict
* remove proximity from .coveragerc
* replace typeddict by simple dict definition
* make black happy
* rework to create proximity sensor for each tracked entity and always recalculate all entites
* apply review comments
* move direction of travel calc out of the loop
* make direction of travel an enum sensor
* remove unique_id from sensors
* don't set distance=0 when in monitored zone
* set None when direction is unknown
* keep distance 0 in case arrived for legacy entity
* exclude from nearest when in ignored zone
* keep distance=0 when arrived
* use description name for entity name
* remove uneeded typing
* uses consistent variable name
* fix debug messages
* use entity_id as loop var
* rename device_state to tracked_entity_state
* correct MRO for sensor entity classes