ha-samsungtv-tizen
ha-samsungtv-tizen copied to clipboard
Detected blocking call to sleep inside the event loop
After setup in the integration and making necessary changes to configuration file, the following error pops up after each boot:
Logger: homeassistant.util.async_ Source: util/async_.py:150 First occurred: 4:40:04 PM (1 occurrences) Last logged: 4:40:04 PM
Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_tizen doing blocking calls at custom_components/samsungtv_tizen/websockets.py, line 115: time.sleep(self.key_press_delay)
The dashboard with media player is also very slow to refresh with the player added to it
Had the same issue Logger: homeassistant.util.async_ Source: util/async_.py:150 First occurred: 14:16:15 (1 occurrences) Last logged: 14:16:15
Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_tizen doing blocking calls at custom_components/samsungtv_tizen/websockets.py, line 115: time.sleep(self.key_press_delay)
Same issue here
Logger: homeassistant.util.async_ Source: util/async_.py:150 First occurred: 13:15:18 (143 occurrences) Last logged: 14:51:19
Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_tizen doing blocking calls at custom_components/samsungtv_tizen/websockets.py, line 115: time.sleep(self.key_press_delay)
Hi all, I get the same indeed, with a "Samsung The Frame". Reading the error it could have something todo with the delay of the off button for the Frame? Just guessing.
2022-05-16 13:28:25 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_tizen doing blocking calls at custom_components/samsungtv_tizen/websockets.py, line 115: time.sleep(self.key_press_delay)
2022-05-16 13:28:54 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_tizen doing blocking calls at custom_components/samsungtv_tizen/websockets.py, line 115: time.sleep(self.key_press_delay)
It is an error around this code block, should that not be task.sleep?
if key_press_delay is None:
time.sleep(self.key_press_delay)
else:
time.sleep(key_press_delay)
Same error here:
Logger: homeassistant.util.async_
Source: util/async_.py:150
First occurred: 12:03:08 AM (1 occurrences)
Last logged: 12:03:08 AM
Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_tizen doing blocking calls at custom_components/samsungtv_tizen/websockets.py, line 115: time.sleep(self.key_press_delay)
I just installed ha-samsungtv-tizen and I'm also having this issue with my frame tv. Home Assistant has been very slow since installing. Any updates?
WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom component author for samsungtv_tizen doing blocking calls at custom_components/samsungtv_tizen/websockets.py, line 115: time.sleep(self.key_press_delay)
Same error in my log. However everything seems to work fine.
I am also repeatedly getting this warning with a Samsung 8 Series TV. As noted in the OP, this seems to be causing dashboards to take a long time to load.
Same issue here as well! It's slowing things down a bit, but the log is flooded completely
Same issue here. :(
Same issue here.
Still same issue here as well!
The following integration is forked from this integration:
https://github.com/ollo69/ha-samsungtv-smart
Just install this one, and everything works perfectly!