Tasshack / dreame-vacuum

Home Assistant integration for Dreame robot vacuums with map support
https://community.home-assistant.io/t/custom-component-dreame-vacuum
MIT License
898 stars 112 forks source link

Detected that custom integration 'dreame_vacuum' calls async_write_ha_state 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/#async_write_ha_state at custom_components/dreame_vacuum/vacuum.py, line 648: self.async_write_ha_state() #619

Closed psummo closed 4 months ago

psummo commented 4 months ago

I found many message like this in HA log

WARNING (Thread-4 (_thread_main)) [homeassistant.helpers.frame] Detected that custom integration 'dreame_vacuum' calls async_write_ha_state 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/#async_write_ha_state at custom_components/dreame_vacuum/vacuum.py, line 648: self.async_write_ha_state(), please report it to the author of the 'dreame_vacuum' custom integration

I don't know if they are already present in the previous version, I notice that because my HA is crashing some times

HA on RP4 Core 2024.6.1 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240605.0

I put as question since i don't know if it's a bug

Tasshack commented 4 months ago

https://github.com/Tasshack/dreame-vacuum/issues/548 https://github.com/Tasshack/dreame-vacuum/issues/540