Use asyncio.create_task to fix asyncio.wait deprecation notice

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-10-19 21:40:03 +02:00
parent 83dd5d62c4
commit fa3e690154
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Version xxx:
2022-xx-xx Maxime “pep” Buquet <pep@bouah.net>
* Added:
- Coroutines in asyncio.wait is now deprecated. Added create_task calls
Version 0.8.0:
2022-08-23 Maxime “pep” Buquet <pep@bouah.net>
* Breaking:

View file

@ -290,8 +290,8 @@ class XEP_0384(BasePlugin):
if self.backend_loaded:
self.xmpp['xep_0163'].add_interest(OMEMO_DEVICES_NS)
await asyncio.wait([
self._set_device_list(),
self._publish_bundle(),
asyncio.create_task(self._set_device_list()),
asyncio.create_task(self._publish_bundle()),
])
self._initial_publish_done = True