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
ban.py
const.py
cors.py Fix typo in KEY_ALLOW_CONFIGRED_CORS (#119905) 2024-06-18 12:44:27 -05:00
data_validator.py
decorators.py
forwarded.py
headers.py
manifest.json
request_context.py
security_filter.py
static.py Fix blocking I/O in CachingStaticResource (#119663) 2024-06-14 08:27:50 +02:00
view.py
web_runner.py