Logger: homeassistant.util.logging
I am getting this error.
Exception in updated when handling msg on 'hass.agent/devices/MIKES-PC': '{"serial_number":"776872ee-5f6c-4070-8cd1-d79912566601","device":{"identifiers":"hass.agent-MIKES-PC","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.19045.0","name":"MIKES-PC","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 816, in async_create_task self.verify_event_loop_thread("async_create_task") 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_create_task from a thread 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.
Solution:Jump to solution
you need to install the forked integration: https://github.com/hass-agent/HASS.Agent-Integration?tab=readme-ov-file#installation
GitHub
GitHub - hass-agent/HASS.Agent-Integration: HASS.Agent's Home Assis...
HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant. - hass-agent/HASS.Agent-I...
4 Replies
This one too.
Exception in updated when handling msg on 'hass.agent/devices/HOME-ASSISTANT': '{"serial_number":"cd495e26-c220-4ac4-8b61-d85a6ebe523e","device":{"identifiers":"hass.agent-HOME-ASSISTANT","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.19045.0","name":"HOME-ASSISTANT","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 816, in async_create_task self.verify_event_loop_thread("async_create_task") 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_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)).
Hello, this is caused by changes in Home Assisant - https://github.com/hass-agent/HASS.Agent-Integration/issues/2
GitHub
Bug: Latest HA Core update 2024.5.0 breaks notification entities. ·...
Please make sure that the issue you're planning to report is not already registered :) Describe the bug The latest HA Core update (2024.5.0) stops hass.agent from creating any notify entities. ...
Solution
you need to install the forked integration: https://github.com/hass-agent/HASS.Agent-Integration?tab=readme-ov-file#installation
GitHub
GitHub - hass-agent/HASS.Agent-Integration: HASS.Agent's Home Assis...
HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant. - hass-agent/HASS.Agent-I...
Thanks. 🙂