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

hass.http.register_static_path which is deprecated #498

Closed
1 task done
Rink76 opened this issue Sep 29, 2024 · 1 comment
Closed
1 task done

hass.http.register_static_path which is deprecated #498

Rink76 opened this issue Sep 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Rink76
Copy link

Rink76 commented Sep 29, 2024

What happened?

Detected that custom integration 'smart_irrigation' 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/smart-irrigation", "/config/custom_components/smart_irrigation/frontend/dist/smart-irrigation.js", False)]); This function will be removed in 2025.7 at custom_components/smart_irrigation/panel.py, line 32: hass.http.register_static_path(PANEL_URL, view_url, False)

How to reproduce

On restart

Relevant log output

Detected that custom integration 'smart_irrigation' 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/smart-irrigation", "/config/custom_components/smart_irrigation/frontend/dist/smart-irrigation.js", False)])`; This function will be removed in 2025.7 at custom_components/smart_irrigation/panel.py, line 32: hass.http.register_static_path(PANEL_URL, view_url, False)

Which version are you running?

2024.9.3

Diagnostics file

  • I have attached a diagnostics file

Additional information

No response

@Rink76 Rink76 added the bug Something isn't working label Sep 29, 2024
@jeroenterheerdt
Copy link
Owner

Duplicate of #429

@jeroenterheerdt jeroenterheerdt marked this as a duplicate of #429 Sep 30, 2024
@jeroenterheerdt jeroenterheerdt closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants