From a1d7e270ff1ba87cd008546a144a65db9cfa7e02 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 27 Nov 2025 16:32:23 +0100 Subject: [PATCH] Add hint to reorder areas and floors (#28189) --- .../config/areas/ha-config-areas-dashboard.ts | 6 +++++- src/panels/home/dialogs/dialog-edit-home.ts | 16 ++++++++++++++++ src/translations/en.json | 4 +++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/panels/config/areas/ha-config-areas-dashboard.ts b/src/panels/config/areas/ha-config-areas-dashboard.ts index 79fdc1c70c..5f146ee9ea 100644 --- a/src/panels/config/areas/ha-config-areas-dashboard.ts +++ b/src/panels/config/areas/ha-config-areas-dashboard.ts @@ -84,6 +84,8 @@ export class HaConfigAreasDashboard extends LitElement { @property({ attribute: false }) public route!: Route; + private _searchParms = new URLSearchParams(window.location.search); + @state() private _hierarchy?: AreasFloorHierarchy; private _blockHierarchyUpdate = false; @@ -167,7 +169,9 @@ export class HaConfigAreasDashboard extends LitElement { .hass=${this.hass} .narrow=${this.narrow} .isWide=${this.isWide} - back-path="/config" + .backPath=${this._searchParms.has("historyBack") + ? undefined + : "/config"} .tabs=${configSections.areas} .route=${this.route} has-fab diff --git a/src/panels/home/dialogs/dialog-edit-home.ts b/src/panels/home/dialogs/dialog-edit-home.ts index a93b8cb728..43a6ead67d 100644 --- a/src/panels/home/dialogs/dialog-edit-home.ts +++ b/src/panels/home/dialogs/dialog-edit-home.ts @@ -2,6 +2,7 @@ import { css, html, LitElement, nothing } from "lit"; import { customElement, property, state } from "lit/decorators"; import { fireEvent } from "../../../common/dom/fire_event"; import "../../../components/entity/ha-entities-picker"; +import "../../../components/ha-alert"; import "../../../components/ha-button"; import "../../../components/ha-dialog-footer"; import "../../../components/ha-wa-dialog"; @@ -78,6 +79,16 @@ export class DialogEditHome @value-changed=${this._favoriteEntitiesChanged} > + + ${this.hass.localize("ui.panel.home.editor.areas_hint", { + areas_page: html`${this.hass.localize("ui.panel.home.editor.areas_page")}`, + })} + +