peterbuga / HASS-sonoff-ewelink

Home Assistant component to control Sonoff/eWeLink devices with original firmware
MIT License
792 stars 296 forks source link

HA is reporting - Detected I/O inside the event loop #267

Open montyha66 opened 3 years ago

montyha66 commented 3 years ago

IM getting follow in my HA logs. Point is that my HA started to freeze every day the same time. Can anyone help me pls? My setup: HassOS 4.14 Home Assistant Core 0.114.4 as with 115 I faced the issue so I return back to 114

2020-10-20 13:58:44 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for sonoff doing I/O at custom_components/sonoff/init.py, line 175: r = requests.post('https://{}-api.coolkit.cc:8080/api/user/login'.format(self._api_region), 2020-10-20 13:58:45 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for sonoff doing I/O at customcomponents/sonoff/init.py, line 372: r = requests.get('https://{}-api.coolkit.cc:8080/api/user/device?lang=en&apiKey={}&getTags=1&version=6&ts=%s&nonce=%s&appid=oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq&imei=%s&os=iOS&model=%s&romVersion=%s&appVersion=%s'.format( 2020-10-20 13:58:47 WARNING (MainThread) [homeassistant.util.async] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for sonoff doing I/O at custom_components/sonoff/init.py, line 221: r = requests.post('https://%s-disp.coolkit.cc:8080/dispatch/app' % self._api_region, headers=self._headers) 2

montyha66 commented 3 years ago

I did install the async branch https://github.com/peterbuga/HASS-sonoff-ewelink/tree/async-patch/sonoff and so far looks good! Errors disappeared.