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 7d5c5e5 commit 367d08bCopy full SHA for 367d08b
tests/conftest.py
@@ -353,10 +353,12 @@ def config(self) -> ZHAData:
353
"""Return the ZHA configuration."""
354
return self.ws_gateway.config
355
356
- async def async_block_till_done(self) -> None:
+ async def async_block_till_done(self, wait_background_tasks=False) -> None:
357
"""Block until all gateways are done."""
358
await asyncio.sleep(0.005)
359
- await self.ws_gateway.async_block_till_done()
+ await self.ws_gateway.async_block_till_done(
360
+ wait_background_tasks=wait_background_tasks
361
+ )
362
await asyncio.sleep(0.001)
363
if self.client_gateway._tasks:
364
current_task = asyncio.current_task()
0 commit comments