Skip to content

Commit

Permalink
Merge pull request #29 from Chriserus/patch-1
Browse files Browse the repository at this point in the history
Fix "Passing coroutines is forbidden, use tasks explicitly." error on…
  • Loading branch information
marotoweb authored Feb 9, 2025
2 parents 791e24e + 749153e commit 95da5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/viomise/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async def async_service_handler(service):

for vacuum in target_vacuums:
update_coro = vacuum.async_update_ha_state(True)
update_tasks.append(update_coro)
update_tasks.append(asyncio.create_task(update_coro))

if update_tasks:
await asyncio.wait(update_tasks)
Expand Down

0 comments on commit 95da5e3

Please sign in to comment.