roberodin/ha-samsungtv-custom

stability issue

Opened this issue · 3 comments

Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 9:29:39 PM (44 occurrences)
Last logged: 9:29:44 PM

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)

Nunak commented

I have same issue :(
2020-07-22 15:16:37 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 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)

Yes same here:

    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 42: response = requests.get(APP_URL_FORMAT.format(self._ip, APPS[app]), timeout=0.2)

This might help in finding a fix
https://developers.home-assistant.io/docs/asyncio_working_with_async/#calling-sync-functions-from-async

Same here on a K7000 ctl_qled setup

2021-01-08 11:33:05 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 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)