decoded_bytes = ("This is a test\n\n"
                            "Where the Device is ready\n"
                            "test 1\n"
                            "test 2\n"
                            "Device is ready")
non_empty_lines = [line for line in decoded_bytes.split("\n") if "Device is ready" in line]
print(non_empty_lines)