Sian-Lee-SA / Home-Assistant-Switch-Manager

Switch manager is a centralised component to handle button pushes for your wireless switches. This includes anything passed through the event bus. The component relies on switch blueprints which is easily made to allow GUI configuration of your switches and their button pushes. This helps remove clutter from the automations.
Other
232 stars 85 forks source link

'switch_manager' calls hass.http.register_static_path which is deprecated #242

Closed johro897 closed 2 months ago

johro897 commented 2 months ago

Detected that custom integration 'switch_manager' 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("/switch_manager_panel.js", "/config/custom_components/switch_manager/assets/switch_manager_panel.js", True)]); This function will be removed in 2025.7 at custom_components/switch_manager/view.py, line 8: hass.http.register_static_path(, please create a bug report at https://github.com/Sian-Lee-SA/Home-Assistant-Switch-Manager/issues

Detected that custom integration 'switch_manager' 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("/assets/switch_manager/deconz-aqara-opple-1x2.png", "/config/blueprints/switch_manager/deconz-aqara-opple-1x2.png", True)]); This function will be removed in 2025.7 at custom_components/switch_manager/view.py, line 34: hass.http.register_static_path(, please create a bug report at https://github.com/Sian-Lee-SA/Home-Assistant-Switch-Manager/issues