1
0
mirror of https://github.com/home-assistant/core synced 2024-07-08 20:17:01 +00:00

Correct deprecation warning async_register_static_paths (#120592)

This commit is contained in:
Max 2024-06-26 20:55:25 +02:00 committed by GitHub
parent 4c6cbadc11
commit 702d53ca30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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"},

View File

@ -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