Affected card or area
Python backend / automations
Integration version
0.6.0
Home Assistant version
2026.6.0
Installation method
HACS
Steps to reproduce
Boot
Expected behaviour
No errors.
Actual behaviour
I'm getting this error in syslog:
`Logger: homeassistant
Source: helpers/frame.py:364
First occurred: 13:35:13 (9 occurrences)
Last logged: 13:45:13
Error doing job: Future exception was never retrieved (task: None)
Traceback (most recent call last):
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
result = ctx.run(self.task)
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
return fn(*args, **kwargs)
File "/config/custom_components/hass_datapoints/sensor.py", line 151, in _handle_time_interval
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1057, in async_write_ha_state
report_non_thread_safe_operation("async_write_ha_state")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 415, in report_non_thread_safe_operation
report_usage(
~~~~~~~~~~~~^
f"calls {what} from a thread other than the event loop, "
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
custom_integration_behavior=ReportBehavior.ERROR,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 216, in report_usage
future.result()
~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 450, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
raise self.exception
File "/usr/src/homeassistant/homeassistant/util/async.py", line 65, in run_callback
future.set_result(callback(*args))
~~~~~~~~^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 264, in _report_usage
_report_usage_integration_frame(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
hass,
^^^^^
...<4 lines>...
integration_behavior is ReportBehavior.ERROR,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 364, in _report_usage_integration_frame
raise RuntimeError(
...<5 lines>...
)
RuntimeError: Detected that custom integration 'hass_datapoints' 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/hass_datapoints/sensor.py, line 151: self.async_write_ha_state(). Please create a bug report at https://github.com/buggedcom/hass-datapoints/issues`
Relevant logs or errors
Additional context
No response
Affected card or area
Python backend / automations
Integration version
0.6.0
Home Assistant version
2026.6.0
Installation method
HACS
Steps to reproduce
Boot
Expected behaviour
No errors.
Actual behaviour
I'm getting this error in syslog:
`Logger: homeassistant
Source: helpers/frame.py:364
First occurred: 13:35:13 (9 occurrences)
Last logged: 13:45:13
Error doing job: Future exception was never retrieved (task: None)
Traceback (most recent call last):
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
result = ctx.run(self.task)
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
return fn(*args, **kwargs)
File "/config/custom_components/hass_datapoints/sensor.py", line 151, in _handle_time_interval
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1057, in async_write_ha_state
report_non_thread_safe_operation("async_write_ha_state")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 415, in report_non_thread_safe_operation
report_usage(
~~~~~~~~~~~~^
f"calls {what} from a thread other than the event loop, "
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
custom_integration_behavior=ReportBehavior.ERROR,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 216, in report_usage
future.result()
~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 450, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
raise self.exception
File "/usr/src/homeassistant/homeassistant/util/async.py", line 65, in run_callback
future.set_result(callback(*args))
~~~~~~~~^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 264, in _report_usage
_report_usage_integration_frame(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
hass,
^^^^^
...<4 lines>...
integration_behavior is ReportBehavior.ERROR,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 364, in _report_usage_integration_frame
raise RuntimeError(
...<5 lines>...
)
RuntimeError: Detected that custom integration 'hass_datapoints' 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/hass_datapoints/sensor.py, line 151: self.async_write_ha_state(). Please create a bug report at https://github.com/buggedcom/hass-datapoints/issues`
Relevant logs or errors
Additional context
No response