Simplify custom component loading (#128813)

This commit is contained in:
Paulus Schoutsen
2024-10-20 03:47:27 -04:00
committed by GitHub
parent e8acb48b1e
commit 28ff138370
2 changed files with 10 additions and 19 deletions

View File

@@ -818,7 +818,7 @@ async def test_get_custom_components(hass: HomeAssistant) -> None:
test_1_integration = _get_test_integration(hass, "test_1", False)
test_2_integration = _get_test_integration(hass, "test_2", True)
name = "homeassistant.loader._async_get_custom_components"
name = "homeassistant.loader._get_custom_components"
with patch(name) as mock_get:
mock_get.return_value = {
"test_1": test_1_integration,