* 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 |
||
---|---|---|
.. | ||
__init__.py | ||
auth.py | ||
ban.py | ||
const.py | ||
cors.py | ||
data_validator.py | ||
decorators.py | ||
forwarded.py | ||
headers.py | ||
manifest.json | ||
request_context.py | ||
security_filter.py | ||
static.py | ||
view.py | ||
web_runner.py |