hristo-atanasov / Tasmota-IRHVAC

Home Assistant platform for controlling IR Air Conditioners via Tasmota IRHVAC command and compatible hardware
186 stars 64 forks source link

Passing coroutines is forbidden, use tasks explicitly #130

Closed pplanteg closed 1 week ago

pplanteg commented 7 months ago

hi, since last update of home assistant I have this error when I try to set TURBO ON or OFF.

using this yaml code :

home assistant display this error :"Passing coroutines is forbidden, use tasks explicitly" it's seem related to python 3.11 as i'm reading around

could you do someting

pplanteg commented 7 months ago

File "/config/custom_components/tasmota_irhvac/climate.py", line 390, 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.

pplanteg commented 7 months ago

Hi it look like it's Fixed :) I have changed in climate.py this: await asyncio.wait(update_tasks)

By: await asyncio.gather(*update_tasks)

no more warnnig

nao-pon commented 1 week ago

Sorry for the late follow-up. I checked with the latest version of this integration (2024.6.2) and was not able to reproduce this issue. Therefore, I will close this, but if you can reproduce it with the latest version, you can reopen this.