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

'webrtc' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop (HA 2024.7) #722

Closed
hmmbob opened this issue Jul 2, 2024 · 2 comments · Fixed by #723
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hmmbob
Copy link
Contributor

hmmbob commented Jul 2, 2024

HA 2024.7.0b7 warns on webrtc:

2024-07-02 08:05:54.290 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'webrtc' 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("/webrtc/video-rtc.js", "/config/custom_components/webrtc/www/video-rtc.js", True)])`; This function will be removed in 2025.7 at custom_components/webrtc/__init__.py, line 63: hass.http.register_static_path("/webrtc/" + name, str(path / name)), please create a bug report at https://github.com/AlexxIT/WebRTC/issues
2024-07-02 08:05:54.329 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'webrtc' 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("/webrtc/embed", "/config/custom_components/webrtc/www/embed.html", True)])`; This function will be removed in 2025.7 at custom_components/webrtc/__init__.py, line 70: hass.http.register_static_path("/webrtc/embed", str(path / "embed.html")), please create a bug report at https://github.com/AlexxIT/WebRTC/issues
@Maarc
Copy link

Maarc commented Aug 7, 2024

Hi! FYI, this is also occurring with HA 2024.7.4.

@AlexxIT AlexxIT added the enhancement New feature or request label Sep 3, 2024
@AlexxIT AlexxIT self-assigned this Sep 3, 2024
@AlexxIT AlexxIT added this to the v3.6.0 milestone Sep 8, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 12, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants