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 f834e20 commit c1e236aCopy full SHA for c1e236a
plugwise_usb/connection/queue.py
@@ -145,6 +145,7 @@ async def _send_queue_worker(self) -> None:
145
146
qsize = self._submit_queue.qsize()
147
if qsize > 3:
148
+ # When the queue size grows, rate-limit the sending of requests to avoid overloading the network
149
await sleep(0.125)
150
151
_LOGGER.warning("Awaiting plugwise responses %d", qsize)
0 commit comments