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

Core Error from HASS agent integration load #53

Open
mahoromax opened this issue Jun 22, 2024 · 2 comments
Open

Core Error from HASS agent integration load #53

mahoromax opened this issue Jun 22, 2024 · 2 comments

Comments

@mahoromax
Copy link

Found the following error in my protocols. And I can't make more out of it than that it happens on load. (Init, create task,...)
Might be related to an existing issue but I have no clue :D

Logger: homeassistant.util.logging
Quelle: util/logging.py:95
Erstmals aufgetreten: 16:22:50 (54 Vorkommnisse)
Zuletzt protokolliert: 16:49:29

Exception in updated when handling msg on 'hass.agent/devices/BB-8': '{"serial_number":"4e9d67b9-4fac-4ce8-bd51-600c5f33b821","device":{"identifiers":"hass.agent-BB-8","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"BB-8","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 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 805, in async_create_task self.verify_event_loop_thread("hass.async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 447, in verify_event_loop_thread frame.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 hass.async_create_task 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/#hassasync_create_task at custom_components/hass_agent/__init__.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.
@3mta3
Copy link

3mta3 commented Jun 22, 2024

Appears this integration is no longer maintained, but has been forked - issue appears resolved in the new repository. I followed the instructions to install the 2.x windows agent and HACS integration from the fork: https://github.com/hass-agent

@mahoromax
Copy link
Author

Oh wow, thank you. I had no idea, when I set it up it appears it was already abandoned, but it worked :D

If I wouldve checked any issue I mightve noticed :-/

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

No branches or pull requests

2 participants