OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
https://openepaperlink.de
Apache License 2.0
148 stars 34 forks source link

Detected that custom integration 'open_epaper_link' calls hass.bus.async_fire from a thread other than the event loop #147

Closed andscho-msft closed 3 months ago

andscho-msft commented 3 months ago

Describe the bug Logger: websocket Source: deps/lib/python3.12/site-packages/websocket/_logging.py:77 First occurred: 3:03:11 PM (382 occurrences) Last logged: 3:21:24 PM

error from callback <bound method Hub.on_message of <custom_components.open_epaper_link.hub.Hub object at 0x7f75f951a5a0>>: Detected that custom integration 'open_epaper_link' calls hass.bus.async_fire from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassbusasync_fire at custom_components/open_epaper_link/hub.py, line 191: self._hass.bus.async_fire(DOMAIN + "_event", event_data). Please report it to the author of the 'open_epaper_link' custom integration.

To Reproduce Steps to reproduce the behavior:

  1. Upgrade to 2024.6.3
  2. Look into the Logs
jonasniesner commented 3 months ago

Hi, did you update the integration?

andscho-msft commented 3 months ago

Sorry I should have tried that first, I just didn't see it mentioned in any recent release notes.

I'll update to latest and re-open if it pops up again.

Thanks for the quick response and thanks for this awesome integration.