cadavre / miio_gateway

lumi.gateway.mieu01 with custom miio_client integration for HA
54 stars 22 forks source link

Error on 2022.2 #28

Open grego1981 opened 2 years ago

grego1981 commented 2 years ago

After upgrading to 2022.2 while it seems that theintegration works, suddenly I get the error below in the logs and all the sensors (motion, door etc.) are either in uknown or not responding..

2022-02-21 09:35:39 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for miio_gateway doing blocking calls at custom_components/miio_gateway/init.py, line 278: sleep(6) # Give it timeout time to respond...

cliffordwhansen commented 2 years ago

I am seeing the same, looks like refactoring to use async is in order. I have not seen any issues being caused by this.