core/tests/components/sonarr
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
..
fixtures
__init__.py Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
conftest.py Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00
test_config_flow.py Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00
test_init.py Avoid pre-importing config_flows if the integration does not support migration (#113369) 2024-03-14 00:13:40 -04:00
test_sensor.py Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00