mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +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,10 +653,12 @@ class ForkedDaapdMaster(MediaPlayerEntity):
|
||||
futures = []
|
||||
for output in self._outputs:
|
||||
futures.append(
|
||||
asyncio.create_task(
|
||||
self.api.change_output(
|
||||
output["id"], selected=True, volume=self._tts_volume * 100
|
||||
)
|
||||
)
|
||||
)
|
||||
await asyncio.wait(futures)
|
||||
|
||||
async def _pause_and_wait_for_callback(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user