Open Anon666333 opened 1 week ago
same on my installation! HASS.Agent V2.0.1
Logger: homeassistant.util.logging
Quelle: util/logging.py:95
Erstmals aufgetreten: 10:49:50 (31 Vorkommnisse)
Zuletzt protokolliert: 11:04:48
Exception in updated when handling msg on 'hass.agent/devices/AM-DESKTOP': '{"serial_number":"xxxxxxxxxxxxxxxxx","device":{"identifiers":"hass.agent-DESKTOP","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.19045.0","name":"AM-DESKTOP","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/__init__.py", line 144, in updated update_device_info(hass, entry, payload) File "/config/custom_components/hass_agent/__init__.py", line 29, in update_device_info device_registry.async_get_or_create( File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 834, in async_get_or_create device = self.async_update_device( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1066, in async_update_device self.hass.verify_event_loop_thread("device_registry.async_update_device") File "/usr/src/homeassistant/homeassistant/core.py", line 462, in verify_event_loop_thread frame.report_non_thread_safe_operation(what) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 225, in report_non_thread_safe_operation report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 159, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 197, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls device_registry.async_update_device 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/#device_registryasync_update_device at custom_components/hass_agent/__init__.py, line 29: device_registry.async_get_or_create(. Please report it to the author of the 'hass_agent' custom integration.
Describe the bug I want to start off with saying I do not use HASS Agent for media player requests, as this is an open bug. I'm only syncing sensors from my PC to HA, and have a couple quick action scripts mapped to macro keys, Sensors that are syncing:
To Reproduce I'm honestly not sure, and this is what's frustrating. There is no consistency, other than the same errors showing up in the logs just before HA crashes and restarts. I've been trying to figure out why HA is crashing and the best I have narrowed it down to is these errors, but I can't seem to understand why.
Expected behavior To not crash HA.
Misc info (please complete the following information):
winver.exe
output):Please check what's applicable (multiple answers possible):
Additional context HA has been running fine, so has HASS.Agent, however, HA has been restarting unexpectedly, so I've been digging through the logs to figure out why this would be happening. I've come to the conclusion, after weeding out other options, that HASS.Agent may be the culprit, though I'm not entirely sure.
Logs Home assistant log:
HASS.Agent Log (Unfortunately this is all that was there):
There were no logs for this timeframe for the Satellite Service, however, this is from a previous day which follows the same pattern.