hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
5.48k stars 1.3k forks source link

'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop #3877

Closed heinemannj closed 4 months ago

heinemannj commented 4 months ago

System Health details

System Information

version core-2024.7.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.33-haos
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4994 Installed Version | 1.34.0 Stage | running Available Repositories | 1476 Downloaded Repositories | 68 HACS Data | ok
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.4 -- | -- update_channel | stable supervisor_version | supervisor-2024.06.2 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 30.8 GB disk_used | 10.6 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | kvm board | ova supervisor_api | ok version_api | ok installed_addons | Filebrowser (2.23.0_14), Samba Backup (5.2.0), Terminal & SSH (9.14.0), eBUSd (23.2.5), Studio Code Server (5.15.0), step-ca-client (1.0.2), EMHASS (0.10.3)
Dashboards dashboards | 8 -- | -- resources | 41 views | 58 mode | storage
Recorder oldest_recorder_run | June 9, 2024 at 02:26 -- | -- current_recorder_run | July 9, 2024 at 11:22 estimated_db_size | 20083.64 MiB database_engine | mysql database_version | 11.2.3
Solcast PV Forecast can_reach_server | ok -- | -- used_requests | 2 rooftop_site_count | 1

Checklist

Describe the issue

Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues

Reproduction steps

please see above

Debug logs

please see above

Diagnostics dump

No response

hacs-bot[bot] commented 4 months ago

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a :+1: reaction to the issue description. Thanks! :+1:

heinemannj commented 4 months ago

Could you please highlight how to fix??? No reference to original issue is provided ...

snowmangh commented 4 months ago

I too would like to know how to fix this issue. I am still getting the error. Thanks in advance.

tjorim commented 4 months ago

Fix was implemented but not released yet. It's not an error, just a warning: ignore it.

snowmangh commented 4 months ago

Thanks for the super fast response @tjorim. And yes, it is a warning. My bad.