diff --git a/tests/common.py b/tests/common.py index cf5469e1cd2..1e53242c961 100644 --- a/tests/common.py +++ b/tests/common.py @@ -600,7 +600,7 @@ def mock_state_change_event( def mock_component(hass: HomeAssistant, component: str) -> None: """Mock a component is setup.""" if component in hass.config.components: - AssertionError(f"Integration {component} is already setup") + raise AssertionError(f"Integration {component} is already setup") hass.config.components.add(component)