From 2ab19464e54af012772689379558d33dde0ef9aa Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 29 Apr 2022 16:09:38 -0700 Subject: [PATCH] Fix /config/server_control redirect (#71084) --- homeassistant/components/frontend/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index 55d745eb309..0c540a477ef 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -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",