zigbeefordomoticz / Domoticz-Zigbee

Zigbee plugin for Domoticz. Allow to connect various zigbee controllers like Zigate but also Texas Instrument CC2531, CC13x2, CC26x2 ; Silicon-Labs; deConz based chipset to be connected to Domoticz
GNU General Public License v3.0
100 stars 43 forks source link

Use of asyncio.Queue #1687

Closed pipiche38 closed 9 months ago

pipiche38 commented 9 months ago

Following @puddly comment https://github.com/zigpy/zigpy/discussions/1300#discussioncomment-7984366

should instead use asyncio.Queue, which has a coroutine item = await queue.get() method that blocks until the queue has a new item.

pipiche38 commented 9 months ago

https://docs.python.org/3/library/asyncio-queue.html

pipiche38 commented 9 months ago

PR #1688