Fix openai_conversation tests broken by Python 3.14.3 asyncio changes (#169259)

This commit is contained in:
epenet
2026-04-27 10:27:01 +02:00
committed by GitHub
parent e684490219
commit e3de695b99
@@ -1408,8 +1408,8 @@ async def test_devices(
)
assert len(devices) == 4 # One for conversation, AI task, STT, and TTS
# Use the first device for snapshot comparison
device = devices[0]
# Find the conversation device for snapshot comparison
device = next(d for d in devices if d.name == "OpenAI Conversation")
assert device == snapshot(exclude=props("identifiers"))
# Verify the device has identifiers matching one of the subentries
expected_identifiers = [