hass-core/homeassistant/components/http
J. Nick Koston 6a3778c48e
Deprecate register_static_path in favor of async_register_static_paths (#119895)
* Deprecate register_static_path in favor of async_register_static_path

`hass.http.register_static_path` is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_path([StaticPathConfig(url_path, path, cache_headers)])`

The arguments to `async_register_static_path` are the same as `register_static_path` except they are wrapped in the `StaticPathConfig` dataclass and an iterable of them is accepted to allow registering multiple paths at once to avoid multiple executor jobs.

* add date

* spacing
2024-06-18 21:51:24 -04:00
..
__init__.py Deprecate register_static_path in favor of async_register_static_paths (#119895) 2024-06-18 21:51:24 -04:00
auth.py Remove strict connection (#117933) 2024-05-24 15:50:22 +02:00
ban.py Use PEP 695 for decorator typing (1) (#117638) 2024-05-17 16:27:02 +02:00
const.py Remove strict connection (#117933) 2024-05-24 15:50:22 +02:00
cors.py Fix typo in KEY_ALLOW_CONFIGRED_CORS (#119905) 2024-06-18 12:44:27 -05:00
data_validator.py Use PEP 695 for function annotations with scoping (#117787) 2024-05-20 12:43:39 +02:00
decorators.py Use PEP 695 for decorator typing with type aliases (1) (#117662) 2024-05-18 11:42:39 +02:00
forwarded.py Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
headers.py Enable Ruff TRY201 (#114269) 2024-03-28 10:18:07 +01:00
manifest.json Remove isal from after_dependencies in http (#119000) 2024-06-07 09:21:53 +02:00
request_context.py Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
security_filter.py Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
static.py Fix blocking I/O in CachingStaticResource (#119663) 2024-06-14 08:27:50 +02:00
view.py Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
web_runner.py Improve annotation styling (#118032) 2024-05-24 15:05:53 +02:00