OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
Apache License 2.0
133 stars 32 forks source link

Detected blocking call to sleep inside the event loop #77

Closed emufan closed 6 months ago

emufan commented 6 months ago

Describe the bug

Logger: homeassistant.util.async Source: util/async.py:140 First occurred: 19. Dezember 2023 um 07:35:09 (85 occurrences) Last logged: 14:59:24

Detected blocking call to sleep inside the event loop by custom integration 'open_epaper_link' at custom_components/open_epaper_link/init.py, line 24: time.sleep((round(float(filecontent)) + timebetweencalls) - curtime), please create a bug report at https://github.com/jonasniesner/open_epaper_link_homeassistant/issues

2023-12-19 16:23:26.078 WARNING (MainThread) [custom_components.open_epaper_link] concurrent call detected, waiting
2023-12-19 16:23:26.083 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'open_epaper_link' at custom_components/open_epaper_link/__init__.py, line 24: time.sleep((round(float(filecontent)) + timebetweencalls) - curtime), please create a bug report at https://github.com/jonasniesner/open_epaper_link_homeassistant/issues
2023-12-19 16:28:27.128 WARNING (MainThread) [custom_components.open_epaper_link] concurrent call detected, waiting
2023-12-19 16:28:27.133 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'open_epaper_link' at custom_components/open_epaper_link/__init__.py, line 24: time.sleep((round(float(filecontent)) + timebetweencalls) - curtime), please create a bug report at https://github.com/jonasniesner/open_epaper_link_homeassistant/issues
2023-12-19 16:33:28.175 WARNING (MainThread) [custom_components.open_epaper_link] concurrent call detected, waiting
2023-12-19 16:33:28.181 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'open_epaper_link' at custom_components/open_epaper_link/__init__.py, line 24: time.sleep((round(float(filecontent)) + timebetweencalls) - curtime), please create a bug report at https://github.com/jonasniesner/open_epaper_link_homeassistant/issues
2023-12-19 16:38:29.721 WARNING (MainThread) [custom_components.open_epaper_link] concurrent call detected, waiting
2023-12-19 16:38:29.733 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'open_epaper_link' at custom_components/open_epaper_link/__init__.py, line 24: time.sleep((round(float(filecontent)) + timebetweencalls) - curtime), please create a bug report at https://github.com/jonasniesner/open_epaper_link_homeassistant/issues
2023-12-19 16:43:30.213 WARNING (MainThread) [custom_components.open_epaper_link] concurrent call detected, waiting
2023-12-19 16:43:30.219 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'open_epaper_link' at custom_components/open_epaper_link/__init__.py, line 24: time.sleep((round(float(filecontent)) + timebetweencalls) - curtime), please create a bug report at https://github.com/jonasniesner/open_epaper_link_homeassistant/issues
...
taquitos commented 6 months ago

Also seeing this.

Logger: homeassistant.util.async_
Source: util/async_.py:140
First occurred: 12:40:00 PM (1 occurrences)
Last logged: 12:40:00 PM

Detected blocking call to sleep inside the event loop by custom integration 'open_epaper_link' at custom_components/open_epaper_link/__init__.py, line 38: time.sleep((round(float(filecontent)) + timebetweencalls) - curtime), please create a bug report at https://github.com/jonasniesner/open_epaper_link_homeassistant/issues
jonasniesner commented 6 months ago

Fixed in 5104996