roberodin/ha-samsungtv-custom

Detected I/O inside the event loop

Opened this issue · 4 comments

Sjeff commented

Home Assistant 0.109 detecteds blocking I/O in the event loop.

Below the error i receive from this custom_component.

Log Details (WARNING)
Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 7:53:31 AM (70 occurrences)
Last logged: 8:00:28 AM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_custom doing I/O at custom_components/samsungtv_custom/samsungctl_qled/upnp.py, line 23: response = requests.post("http://{host}:9197/upnp/control/{protocole}1".format(host=self._host, protocole=protocole), data=body, headers=headers, timeout=0.2)
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_custom doing I/O at custom_components/samsungtv_custom/samsungctl_qled/application.py, line 41: response = requests.get(APP_URL_FORMAT.format(self._ip, APPS[app]), timeout=0.2)

Version of Home Assistant: 0.109.0
Hardware: Intel NUC
OS: Ubuntu with Docker
TV: QE55Q7FAM

I also have this error. It seems to have serious consequences causing me to loose or slow down access to Home Assistant no matter which means of access I use (NabuCasa/local access/samba).

I also have this issue. The warnings floods the log file. Please repair as soon as possible.

Its still there.

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_custom doing I/O at custom_components/samsungtv_custom/samsungctl_qled/application.py, line 41: response = requests.get(APP_URL_FORMAT.format(self._ip, APPS[app]), timeout=0.2)

with HA 0.111.4

PR #55 solve this issue.
The "Detect I/O inside the event loop" slows down HA making it less responsive.