roberodin / ha-samsungtv-custom

📺 HomeAssistant - SamsungTV Custom Component
Apache License 2.0
122 stars 177 forks source link

stability issue #50

Open kingpainter opened 3 years ago

kingpainter commented 3 years ago

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 3 years ago

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)

AdamOttvar commented 3 years ago

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

jp-gorman commented 3 years ago

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)