@pytest.fixture
async def setup_integration(hass: HomeAssistant, mock_get_source_ip, ssdp_instant_discovery, mock_upnp_device):
    'Create an initialized integration.'
    entry = MockConfigEntry(domain=DOMAIN, data={CONFIG_ENTRY_UDN: TEST_UDN, CONFIG_ENTRY_ST: TEST_ST})
    entry.add_to_hass(hass)
    (await hass.config_entries.async_setup(entry.entry_id))
    (await hass.async_block_till_done())
    (yield entry)
Create an initialized integration.
@pytest.fixture
async def setup_integration(hass: HomeAssistant, mock_get_source_ip, ssdp_instant_discovery, mock_upnp_device):
    
    entry = MockConfigEntry(domain=DOMAIN, data={CONFIG_ENTRY_UDN: TEST_UDN, CONFIG_ENTRY_ST: TEST_ST})
    entry.add_to_hass(hass)
    (await hass.config_entries.async_setup(entry.entry_id))
    (await hass.async_block_till_done())
    (yield entry)