From 2f98e68ed8c55e2c1ec400ef6ea4069c8e65ea6e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 27 Feb 2026 20:42:12 +0100 Subject: [PATCH] Mock async_setup_entry in arcam_fmj config flow tests (#164351) --- tests/components/arcam_fmj/test_config_flow.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/components/arcam_fmj/test_config_flow.py b/tests/components/arcam_fmj/test_config_flow.py index 1a578fc613de..c153350551d1 100644 --- a/tests/components/arcam_fmj/test_config_flow.py +++ b/tests/components/arcam_fmj/test_config_flow.py @@ -70,6 +70,15 @@ def dummy_client_fixture() -> Generator[MagicMock]: yield client.return_value +@pytest.fixture(autouse=True) +def mock_setup_entry() -> Generator[AsyncMock]: + """Override async_setup_entry.""" + with patch( + "homeassistant.components.arcam_fmj.async_setup_entry", return_value=True + ) as mock_setup: + yield mock_setup + + async def test_ssdp(hass: HomeAssistant) -> None: """Test a ssdp import flow.""" result = await hass.config_entries.flow.async_init(