Fix /config/server_control redirect (#71084)

This commit is contained in:
Paulus Schoutsen 2022-04-29 16:09:38 -07:00 committed by GitHub
parent 7662d588a9
commit de26df0c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -360,13 +360,13 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
if os.path.isdir(local):
hass.http.register_static_path("/local", local, not is_dev)
# Can be removed in 2023
hass.http.register_redirect("/config/server_control", "/developer-tools/yaml")
hass.http.app.router.register_resource(IndexView(repo_path, hass))
async_register_built_in_panel(hass, "profile")
# Can be removed in 2023
hass.http.register_redirect("/config/server_control", "/developer-tools/yaml")
async_register_built_in_panel(
hass,
"developer-tools",