This card provides a user-friendly way to fully control map-based vacuums in Home Assistant. Supported brands include Xiaomi (Roborock/Viomi/Dreame/Roidmi/Valetudo/Valetudo RE), Neato, Wyze, Roomba, Ecovacs (and probably more).
MIT License
1.47k
stars
252
forks
source link
"Passing coroutines" error while performing vacuum_clean_segment command #692
[X] I have updated the card to the latest version available
[X] I have cleared the cache of my browser
[X] I have checked if the problem is already reported
The problem
Hi everybody,
After struggling finding the right integration to add my Xiaomi Mop P Vacuum's funcions to the card (I found out that the easiest way to do so is using KrzysztofHajdamowicz/miio2), I'm still having problems while launching vacuum_clean_segment command, after choosing the room to clean, obtaining this error:
Passing coroutines is forbidden, use tasks explicitly. Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/miio2/vacuum.py", line 231, in async_service_handler await asyncio.wait(update_tasks) File "/usr/local/lib/python3.11/asyncio/tasks.py", line 425, in wait raise TypeError("Passing coroutines is forbidden, use tasks explicitly.") TypeError: Passing coroutines is forbidden, use tasks explicitly.
Even with that, the cleaning process seems to start, but it looks like that what is performing is a normal clean, ignoring the room selection.
Is there any way to figure out what's wrong in my configuration?
Many thanks in advance!
What version of a card has described problem?
v2.2.2
What was the last working version card?
No response
What vacuum model do you have problems with?
Xiaomi Mop P
Which integration do you use to control your vacuum (link)?
Checklist
The problem
Hi everybody,
After struggling finding the right integration to add my Xiaomi Mop P Vacuum's funcions to the card (I found out that the easiest way to do so is using KrzysztofHajdamowicz/miio2), I'm still having problems while launching vacuum_clean_segment command, after choosing the room to clean, obtaining this error:
Passing coroutines is forbidden, use tasks explicitly. Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/miio2/vacuum.py", line 231, in async_service_handler await asyncio.wait(update_tasks) File "/usr/local/lib/python3.11/asyncio/tasks.py", line 425, in wait raise TypeError("Passing coroutines is forbidden, use tasks explicitly.") TypeError: Passing coroutines is forbidden, use tasks explicitly.
Even with that, the cleaning process seems to start, but it looks like that what is performing is a normal clean, ignoring the room selection.
Is there any way to figure out what's wrong in my configuration?
Many thanks in advance!
What version of a card has described problem?
v2.2.2
What was the last working version card?
No response
What vacuum model do you have problems with?
Xiaomi Mop P
Which integration do you use to control your vacuum (link)?
https://github.com/KrzysztofHajdamowicz/home-assistant-vacuum-styj02ym
What browser (browsers/apps) does have this problem?
Chrome
What version of Home Assistant do you use?
2023.12.1
What type of installation are you running?
Home Assistant OS
Card's configuration
Javascript errors shown in the browser's console (if applicable)
No response
Additional information
No response