mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Add support for preloading platforms in the loader (#112282)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user