core/tests
J. Nick Koston a6b17dbe68
Schedule polling as periodic tasks (#112640)
* Schedule periodic coordinator updates as background tasks.

Currently, the coordinator's periodic refreshes delay startup because they are not scheduled as background tasks. We will wait if the startup takes long enough for the first planned refresh. Another coordinator's scheduled refresh will be fired on busy systems, further delaying the startup. This chain of events results in the startup taking a long time and hitting the safety timeout because too many coordinators are refreshing.

This case can also happen with scheduled entity refreshes, but it's less common. A future PR will address that case.

* periodic_tasks

* periodic_tasks

* periodic_tasks

* merge

* merge

* merge

* merge

* merge

* fix test that call the sync api from async

* one more place

* cannot chain

* async_run_periodic_hass_job

* sun and pattern time changes from automations also block startup

* Revert "sun and pattern time changes from automations also block startup"

This reverts commit 6de2defa05.

* make sure polling is cancelled when config entry is unloaded

* Revert "Revert "sun and pattern time changes from automations also block startup""

This reverts commit e8f12aad55.

* remove DisabledError from homewizard test as it relies on a race

* fix race

* direct coverage
2024-03-07 23:32:26 -05:00
..
auth
components Schedule polling as periodic tasks (#112640) 2024-03-07 23:32:26 -05:00
fixtures Improve package schema validation (#108125) 2024-02-10 20:16:20 +01:00
hassfest
helpers Schedule polling as periodic tasks (#112640) 2024-03-07 23:32:26 -05:00
pylint Remove config flow specifics from FlowResult (#111932) 2024-03-01 13:07:13 +01:00
resources
scripts Reset log level in script tests (#109881) 2024-02-07 17:22:10 +01:00
snapshots Improve package schema validation (#108125) 2024-02-10 20:16:20 +01:00
test_util
testing_config Add custom integration block list (#112481) 2024-03-06 13:56:47 +01:00
util Speed up the frame helper (#112562) 2024-03-06 20:54:09 -10:00
__init__.py
common.py Speed up the frame helper (#112562) 2024-03-06 20:54:09 -10:00
conftest.py Speed up the frame helper (#112562) 2024-03-06 20:54:09 -10:00
ignore_uncaught_exceptions.py
patch_time.py
ruff.toml Update ruff to 0.2.1 (#109796) 2024-02-06 15:41:34 +01:00
syrupy.py
test_bootstrap.py Log waiting tasks in bootstrap that are delaying startup (#112637) 2024-03-07 13:18:18 -10:00
test_circular_imports.py Fix circular imports in core integrations (#111875) 2024-02-29 21:04:41 -05:00
test_config.py Preload platform integrations to better group executor usage (#112010) 2024-03-02 23:03:35 -10:00
test_config_entries.py Schedule polling as periodic tasks (#112640) 2024-03-07 23:32:26 -05:00
test_const.py Add Beaufort to wind_speed (#105795) 2024-03-05 14:55:59 +01:00
test_core.py Schedule polling as periodic tasks (#112640) 2024-03-07 23:32:26 -05:00
test_data_entry_flow.py Add TypeVar default for FlowResult (#112345) 2024-03-05 22:52:11 +01:00
test_exceptions.py
test_loader.py Speed up the frame helper (#112562) 2024-03-06 20:54:09 -10:00
test_main.py
test_requirements.py Refactor file_upload to avoid janus dep (#112032) 2024-03-02 10:58:08 -10:00
test_runner.py
test_setup.py Migrate remaining calls in config modules to async_get_component (#112293) 2024-03-05 09:59:52 -05:00
test_test_fixtures.py
typing.py