We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d335f3c commit e8d871bCopy full SHA for e8d871b
plugwise_usb/connection/queue.py
@@ -5,7 +5,6 @@
5
from asyncio import (
6
PriorityQueue,
7
Task,
8
- TimeoutError,
9
get_running_loop,
10
sleep,
11
wait_for,
@@ -147,7 +146,7 @@ async def _send_queue_worker(self) -> None:
147
146
while self._running and self._stick is not None:
148
try:
149
request = await wait_for(self._submit_queue.get(), timeout=0.5)
150
- except TimeoutError:
+ except asyncio.TimeoutError:
151
_LOGGER.debug("No queue-item after 0.5s, doing other work")
152
153
_LOGGER.debug("Sending from send queue %s", request)
0 commit comments