@pytest.fixture
async def ssdp_no_discovery():
    'No discovery.'

    async def register_callback(hass, callback, match_dict):
        "Don't do callback."
        return MagicMock()
    with patch('homeassistant.components.ssdp.async_register_callback', side_effect=register_callback) as mock_register, patch('homeassistant.components.ssdp.async_get_discovery_info_by_st', return_value=[]) as mock_get_info, patch('homeassistant.components.upnp.config_flow.SSDP_SEARCH_TIMEOUT', 0.1):
        (yield (mock_register, mock_get_info))
No discovery.
@pytest.fixture
async def ssdp_no_discovery():
    

    async def register_callback(hass, callback, match_dict):
        "Don't do callback."
        return MagicMock()
    with patch('homeassistant.components.ssdp.async_register_callback', side_effect=register_callback) as mock_register, patch('homeassistant.components.ssdp.async_get_discovery_info_by_st', return_value=[]) as mock_get_info, patch('homeassistant.components.upnp.config_flow.SSDP_SEARCH_TIMEOUT', 0.1):
        (yield (mock_register, mock_get_info))