Add support for preloading platforms in the loader (#112282)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
J. Nick Koston
2024-03-04 16:33:12 -10:00
committed by GitHub
parent d0c81f7d00
commit 1e173e82d0
6 changed files with 163 additions and 97 deletions

View File

@ -843,7 +843,7 @@ async def test_async_prepare_setup_platform(
caplog.clear()
# There is no actual config platform for this integration
assert await setup.async_prepare_setup_platform(hass, {}, "config", "test") is None
assert "test.config not found" in caplog.text
assert "No module named 'custom_components.test.config'" in caplog.text
button_platform = (
await setup.async_prepare_setup_platform(hass, {}, "button", "test") is None