Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log warning using async_write_ha_state #243

Open
albertinizao opened this issue Sep 4, 2024 · 1 comment
Open

Log warning using async_write_ha_state #243

albertinizao opened this issue Sep 4, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@albertinizao
Copy link

Is your feature request related to a problem? Please describe.
I see a warning recurrent log

WARNING (Dummy-15) [homeassistant.helpers.frame] Detected that custom integration 'hon' 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/hon/sensor.py, line 849: self.async_write_ha_state(), please report it to the author of the 'hon' custom integration

@albertinizao albertinizao added the enhancement New feature or request label Sep 4, 2024
@kubasaw
Copy link

kubasaw commented Sep 8, 2024

MQTT message handler is running in separated thread, so this warning occur every time message is received.

I'm fixing this (and much more issues) in fork, but at the moment it is quite unstable: https://github.com/IoTLabs-pl/hon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants