core/tests/components/sensor
J. Nick Koston fba826ae9e
Migrate restore_state helper to use registry loading pattern (#93773)
* Migrate restore_state helper to use registry loading pattern

As more entities have started using restore_state over time, it
has become a startup bottleneck as each entity being added is
creating a task to load restore state data that is already loaded
since it is a singleton

We now use the same pattern as the registry helpers

* fix refactoring error -- guess I am tired

* fixes

* fix tests

* fix more

* fix more

* fix zha tests

* fix zha tests

* comments

* fix error

* add missing coverage

* s/DATA_RESTORE_STATE_TASK/DATA_RESTORE_STATE/g
2023-05-30 20:48:17 -05:00
..
__init__.py Use python defaults for comparing State, LazyState, and Event objects (#86856) 2023-01-29 13:31:43 -05:00
test_device_condition.py Add type hints for stub_blueprint_populate fixture (#93568) 2023-05-26 08:13:13 +02:00
test_device_trigger.py Add type hints for stub_blueprint_populate fixture (#93568) 2023-05-26 08:13:13 +02:00
test_helpers.py Add type hints to integration tests (part 19) (#88178) 2023-02-15 18:07:40 +01:00
test_init.py Migrate restore_state helper to use registry loading pattern (#93773) 2023-05-30 20:48:17 -05:00
test_recorder.py Update sensor tests to avoid patching utcnow (#93497) 2023-05-24 19:54:08 -05:00
test_significant_change.py Add type hints to integration tests (part 19) (#88178) 2023-02-15 18:07:40 +01:00
test_websocket_api.py Sort unit lists sent to frontend (#88898) 2023-02-28 16:12:49 +01:00