From 6483c6afc30e383283bc759116bf946d4001f564 Mon Sep 17 00:00:00 2001 From: raidenlal <53146816+raidenlal@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:03:36 +0200 Subject: [PATCH 1/4] Update manifest.json --- custom_components/viomi_vacuum_v8/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/viomi_vacuum_v8/manifest.json b/custom_components/viomi_vacuum_v8/manifest.json index f1c3dba..d36018a 100644 --- a/custom_components/viomi_vacuum_v8/manifest.json +++ b/custom_components/viomi_vacuum_v8/manifest.json @@ -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", From 94ecf365b798c54815945bf9890f381fccd61add Mon Sep 17 00:00:00 2001 From: raidenlal <53146816+raidenlal@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:14:52 +0200 Subject: [PATCH 2/4] Update vacuum.py --- custom_components/viomi_vacuum_v8/vacuum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/viomi_vacuum_v8/vacuum.py b/custom_components/viomi_vacuum_v8/vacuum.py index e923299..8aa3267 100644 --- a/custom_components/viomi_vacuum_v8/vacuum.py +++ b/custom_components/viomi_vacuum_v8/vacuum.py @@ -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) From 047ad15323be00b1f67077893804a45249578a2c Mon Sep 17 00:00:00 2001 From: raidenlal <53146816+raidenlal@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:41:06 +0200 Subject: [PATCH 3/4] Update vacuum.py --- custom_components/viomi_vacuum_v8/vacuum.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/viomi_vacuum_v8/vacuum.py b/custom_components/viomi_vacuum_v8/vacuum.py index 8aa3267..e1cd4e2 100644 --- a/custom_components/viomi_vacuum_v8/vacuum.py +++ b/custom_components/viomi_vacuum_v8/vacuum.py @@ -227,6 +227,7 @@ async def async_service_handler(service): if not hasattr(device, method["method"]): continue await getattr(device, method["method"])(**params) + _LOGGER.info("Appending task instead of coroutine") update_tasks.append(asyncio.create_task(device.async_update_ha_state(True))) if update_tasks: From ab8e700b25a03de74bdb3530f93e5fda8286f484 Mon Sep 17 00:00:00 2001 From: raidenlal <53146816+raidenlal@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:53:16 +0200 Subject: [PATCH 4/4] Update vacuum.py --- custom_components/viomi_vacuum_v8/vacuum.py | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_components/viomi_vacuum_v8/vacuum.py b/custom_components/viomi_vacuum_v8/vacuum.py index e1cd4e2..8aa3267 100644 --- a/custom_components/viomi_vacuum_v8/vacuum.py +++ b/custom_components/viomi_vacuum_v8/vacuum.py @@ -227,7 +227,6 @@ async def async_service_handler(service): if not hasattr(device, method["method"]): continue await getattr(device, method["method"])(**params) - _LOGGER.info("Appending task instead of coroutine") update_tasks.append(asyncio.create_task(device.async_update_ha_state(True))) if update_tasks: