1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use asyncio.timeout [b-e] (#98448)

This commit is contained in:
Marc Mueller
2023-08-15 15:30:20 +02:00
committed by GitHub
parent 346a7292d7
commit e2d2ec8817
26 changed files with 53 additions and 71 deletions

View File

@@ -5,7 +5,6 @@ import socket
from unittest.mock import Mock, patch
from aioesphomeapi import VoiceAssistantEventType
import async_timeout
import pytest
from homeassistant.components.assist_pipeline import PipelineEvent, PipelineEventType
@@ -148,7 +147,7 @@ async def test_udp_server(
sock.sendto(b"test", ("127.0.0.1", port))
# Give the socket some time to send/receive the data
async with async_timeout.timeout(1):
async with asyncio.timeout(1):
while voice_assistant_udp_server_v1.queue.qsize() == 0:
await asyncio.sleep(0.1)