Developer Tools -> Tools: Redirect URLs to /config/tools (#175281)

This commit is contained in:
Aidan Timson
2026-07-21 14:15:10 +02:00
committed by GitHub
parent 2bbf975a5d
commit af1391a192
3 changed files with 38 additions and 20 deletions
+19 -12
View File
@@ -558,19 +558,26 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
# Shopping list panel was replaced by todo panel in 2023.11
hass.http.register_redirect("/shopping-list", "/todo")
# Developer tools moved to config panel in 2026.2
for url in (
"/developer-tools",
"/developer-tools/yaml",
"/developer-tools/state",
"/developer-tools/action",
"/developer-tools/template",
"/developer-tools/event",
"/developer-tools/statistics",
"/developer-tools/assist",
"/developer-tools/debug",
# Developer tools moved to config in 2026.2 and was renamed to
# "Tools" (/config/tools) in 2026.8. Redirect both the original
# top-level URLs and the 2026.2 config URLs to the new location.
for suffix in (
"",
"/yaml",
"/state",
"/action",
"/template",
"/event",
"/statistics",
"/assist",
"/debug",
):
hass.http.register_redirect(url, f"/config{url}")
hass.http.register_redirect(
f"/developer-tools{suffix}", f"/config/tools{suffix}"
)
hass.http.register_redirect(
f"/config/developer-tools{suffix}", f"/config/tools{suffix}"
)
hass.http.app.router.register_resource(IndexView(repo_path, hass))
+1 -1
View File
@@ -1137,7 +1137,7 @@
},
"issues": {
"invalid_platform_config": {
"description": "Home Assistant detected an invalid config for a manually configured item.\n\nPlatform domain: **{domain}**\nConfiguration file: **{config_file}**\nNear line: **{line}**\nConfiguration found:\n```yaml\n{config}\n```\nError: **{error}**.\n\nMake sure the configuration is valid and [reload](/config/developer-tools/yaml) the manually configured MQTT items or restart Home Assistant to fix this issue.",
"description": "Home Assistant detected an invalid config for a manually configured item.\n\nPlatform domain: **{domain}**\nConfiguration file: **{config_file}**\nNear line: **{line}**\nConfiguration found:\n```yaml\n{config}\n```\nError: **{error}**.\n\nMake sure the configuration is valid and [reload](/config/tools/yaml) the manually configured MQTT items or restart Home Assistant to fix this issue.",
"title": "Invalid config found for MQTT {domain} item"
},
"protocol_5_migration": {
+18 -7
View File
@@ -958,13 +958,24 @@ async def test_get_version(
("from_url", "to_url", "expected_status"),
[
("/.well-known/change-password", "/profile", 302),
("/developer-tools", "/config/developer-tools", 301),
("/developer-tools/yaml", "/config/developer-tools/yaml", 301),
("/developer-tools/state", "/config/developer-tools/state", 301),
("/developer-tools/action", "/config/developer-tools/action", 301),
("/developer-tools/template", "/config/developer-tools/template", 301),
("/developer-tools/event", "/config/developer-tools/event", 301),
("/developer-tools/debug", "/config/developer-tools/debug", 301),
("/developer-tools", "/config/tools", 301),
("/developer-tools/yaml", "/config/tools/yaml", 301),
("/developer-tools/state", "/config/tools/state", 301),
("/developer-tools/action", "/config/tools/action", 301),
("/developer-tools/template", "/config/tools/template", 301),
("/developer-tools/event", "/config/tools/event", 301),
("/developer-tools/statistics", "/config/tools/statistics", 301),
("/developer-tools/assist", "/config/tools/assist", 301),
("/developer-tools/debug", "/config/tools/debug", 301),
("/config/developer-tools", "/config/tools", 301),
("/config/developer-tools/yaml", "/config/tools/yaml", 301),
("/config/developer-tools/state", "/config/tools/state", 301),
("/config/developer-tools/action", "/config/tools/action", 301),
("/config/developer-tools/template", "/config/tools/template", 301),
("/config/developer-tools/event", "/config/tools/event", 301),
("/config/developer-tools/statistics", "/config/tools/statistics", 301),
("/config/developer-tools/assist", "/config/tools/assist", 301),
("/config/developer-tools/debug", "/config/tools/debug", 301),
("/shopping-list", "/todo", 301),
],
)