mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Correct deprecation warning async_register_static_paths
(#120592)
This commit is contained in:
parent
b35442ed2d
commit
2e01e169ef
@ -483,7 +483,7 @@ class HomeAssistantHTTP:
|
||||
frame.report(
|
||||
"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_path("
|
||||
"call `await hass.http.async_register_static_paths("
|
||||
f'[StaticPathConfig("{url_path}", "{path}", {cache_headers})])`; '
|
||||
"This function will be removed in 2025.7",
|
||||
exclude_integrations={"http"},
|
||||
|
@ -543,5 +543,5 @@ async def test_register_static_paths(
|
||||
"Detected code that 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_path"
|
||||
"`await hass.http.async_register_static_paths"
|
||||
) in caplog.text
|
||||
|
Loading…
x
Reference in New Issue
Block a user