Skip to content

'hass_agent' calls device_registry.async_update_device from a thread .....Β #54

@ThomasCr

Description

@ThomasCr

I noticed the following error message in the logfiles:

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.

2024-10-03 13:23:55.974 ERROR (SyncWorker_12) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/PCT': '{"serial_number":"7705d518-a4f9-4e2d-9b39-eb26d6272e1e","device":{"identifiers":"hass.agent-PCT","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.19045.0","name":"PCT","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":false}}'

    _report_integration(what, integration_frame, level, error_if_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions