core/tests
J. Nick Koston 9940f51b95
Avoid pre-importing config_flows if the integration does not support migration (#113369)
* Avoid pre-importing config_flows if the integration does support migration

Currently we pre-import the config flow module if it exists since
setting up the config entry required comparing the versions found
in the config_flow.py. We can avoid the pre-import if the integration
does not support async_migrate_entry which means we avoid loading
many config flows in memory at startup.

* cover

* fix missing block

* do not call directly

* its too fast now, the test gets more along

* Update homeassistant/loader.py
2024-03-14 00:13:40 -04:00
..
auth Avoid saving auth right after we load it during startup (#112008) 2024-03-09 11:03:22 -10:00
components Avoid pre-importing config_flows if the integration does not support migration (#113369) 2024-03-14 00:13:40 -04:00
fixtures Remove fixtures from global fixtures folder (#113060) 2024-03-11 10:19:54 -04:00
hassfest Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
helpers Remove deprecated `hass.components` usage in service tests (#111883) 2024-03-12 17:27:44 +01:00
pylint Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
resources
scripts Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
snapshots Improve package schema validation (#108125) 2024-02-10 20:16:20 +01:00
test_util Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
testing_config Only load services.yaml for integrations that have it (#112732) 2024-03-11 19:05:32 +01:00
util Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
__init__.py
common.py Small improvement to test run time (#113175) 2024-03-12 23:01:39 +01:00
conftest.py Cleanup mqtt PLATFORMS constant and CI-test platform filters (#112847) 2024-03-09 23:48:54 +01:00
ignore_uncaught_exceptions.py Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
patch_time.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
ruff.toml Update ruff to 0.2.1 (#109796) 2024-02-06 15:41:34 +01:00
syrupy.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_bootstrap.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_circular_imports.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_config.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_config_entries.py Avoid pre-importing config_flows if the integration does not support migration (#113369) 2024-03-14 00:13:40 -04:00
test_const.py Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
test_core.py Migrate one time listeners to use async_run_hass_job (#113179) 2024-03-13 11:06:30 +01:00
test_data_entry_flow.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_exceptions.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_loader.py Avoid pre-importing config_flows if the integration does not support migration (#113369) 2024-03-14 00:13:40 -04:00
test_main.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_requirements.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_runner.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
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 Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
typing.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00