nielsfaber / alarmo

Easy to use alarm system integration for Home Assistant
1.24k stars 117 forks source link

Warning in Home Assistant 2024.7 beta 2 logs about "hass.http.register_static_path" #985

Open bharvey88 opened 6 days ago

bharvey88 commented 6 days ago

Checklist

Alarmo Version

1.10.3

HA Version

2024.7.0

Bug description

warning in logs below:

Detected that custom integration 'alarmo' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead callawait hass.http.async_register_static_paths([StaticPathConfig("/api/panel_custom/alarmo", "/config/custom_components/alarmo/frontend/dist/alarm-panel.js", False)]); This function will be removed in 2025.7 at custom_components/alarmo/panel.py, line 27: hass.http.register_static_path(, please create a bug report at https://github.com/nielsfaber/alarmo/issues

Steps to reproduce

update to beta

Relevant log output

Detected that custom integration 'alarmo' 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("/api/panel_custom/alarmo", "/config/custom_components/alarmo/frontend/dist/alarm-panel.js", False)])`; This function will be removed in 2025.7 at custom_components/alarmo/panel.py, line 27: hass.http.register_static_path(, please create a bug report at https://github.com/nielsfaber/alarmo/issues