mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 13:38:04 +00:00
* 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