diff --git a/tests/components/epion/test_config_flow.py b/tests/components/epion/test_config_flow.py index 50666d52336..d7329f64324 100644 --- a/tests/components/epion/test_config_flow.py +++ b/tests/components/epion/test_config_flow.py @@ -100,16 +100,11 @@ async def test_duplicate_entry(hass: HomeAssistant, mock_epion: MagicMock) -> No DOMAIN, context={"source": config_entries.SOURCE_USER} ) - with patch( - "homeassistant.components.epion.async_setup_entry", - return_value=True, - ) as mock_setup_entry: - result = await hass.config_entries.flow.async_configure( - result["flow_id"], - {CONF_API_KEY: API_KEY}, - ) - await hass.async_block_till_done() + result = await hass.config_entries.flow.async_configure( + result["flow_id"], + {CONF_API_KEY: API_KEY}, + ) + await hass.async_block_till_done() assert result["type"] == FlowResultType.ABORT assert result["reason"] == "already_configured" - assert mock_setup_entry.call_count == 0