async def test_hassio_discovery_existing_configuration(
    hass: HomeAssistant,
    mock_config_entry_v2: MockConfigEntry,
    discovery_info: ssdp.SsdpServiceInfo,
) -> None:
    """Test abort on an existing config entry."""
    mock_config_entry_v2.add_to_hass(hass)
    result = await hass.config_entries.flow.async_init(
        HMIP_DOMAIN,
        data=discovery_info,
        context={"source": config_entries.SOURCE_SSDP},
    )
    assert result["type"] == FlowResultType.ABORT
Test abort on an existing config entry.
tests/test_config_flow.py