Skip to content

Hass agent stopped working after upgrading to 2024.5.1 - dont see the devices under mqtt anymore #50

Description

@hauserpro

2024-05-06 11:23:59.553 WARNING (SyncWorker_26) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_update_device from a thread 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-05-06 11:23:59.555 ERROR (SyncWorker_26) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/pc-name': '{"serial_number":"xxxxxxxx","device":{"identifiers":"hass.agent-pc-name","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"pc-name","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 758, in async_get_or_create
device = self.async_update_device(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 907, in async_update_device
self.hass.verify_event_loop_thread("async_update_device")
File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread
frame.report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report
_report_integration(what, integration_frame, level, error_if_integration)
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration
raise RuntimeError(
RuntimeError: Detected that custom integration 'hass_agent' calls async_update_device from a thread 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.
hass agent issue pic 1
hass agent issue pic 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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