tsunglung / XiaomiAirFryer

Xiaomi Smart Air Fryer integration for Home Assistant
MIT License
66 stars 18 forks source link

Depreciated Coroutine #12

Open Iruini626 opened 1 year ago

Iruini626 commented 1 year ago

need to remove deprecated asyncio coroutine in switch.py line 217 and 218

MiguelAngelLV commented 1 year ago

Any solution?

Iruini626 commented 1 year ago

Yes, you need to manually modify the switch.py file.

GMeeser commented 1 year ago

How?

Chaotnix commented 10 months ago

I fixed it with this:

https://github.com/tsunglung/XiaomiAirFryer/compare/master...Chaotnix:XiaomiAirFryer:master

Change line 218 with await asyncio.wait(list(map(lambda t: asyncio.create_task(t), update_tasks)))