Skip to content

Commit

Permalink
Merge pull request #5 from raidenlal/master
Browse files Browse the repository at this point in the history
Python 3.11 Passing coroutines is forbidden, use tasks explicitly fix
  • Loading branch information
tykarol authored Jul 10, 2023
2 parents 2de4846 + ab8e700 commit cb1621d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/viomi_vacuum_v8/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "viomi_vacuum_v8",
"name": "Viomi Vacuum V8",
"version": "2022.3.1",
"version": "2023.6.1",
"documentation": "https://github.com/tykarol/home-assistant-viomi-vacuum-v8",
"requirements": [
"construct>=2.10.59",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/viomi_vacuum_v8/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async def async_service_handler(service):
if not hasattr(device, method["method"]):
continue
await getattr(device, method["method"])(**params)
update_tasks.append(device.async_update_ha_state(True))
update_tasks.append(asyncio.create_task(device.async_update_ha_state(True)))

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

0 comments on commit cb1621d

Please sign in to comment.