mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix forked_daapd integration with py3.11 (#88091)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
This commit is contained in:
parent
5335dfbc67
commit
e6b7f1d487
@ -653,8 +653,10 @@ class ForkedDaapdMaster(MediaPlayerEntity):
|
||||
futures = []
|
||||
for output in self._outputs:
|
||||
futures.append(
|
||||
self.api.change_output(
|
||||
output["id"], selected=True, volume=self._tts_volume * 100
|
||||
asyncio.create_task(
|
||||
self.api.change_output(
|
||||
output["id"], selected=True, volume=self._tts_volume * 100
|
||||
)
|
||||
)
|
||||
)
|
||||
await asyncio.wait(futures)
|
||||
|
Loading…
x
Reference in New Issue
Block a user