From b273b31b03e07d7a44c42c4c00cd90e0dbd56b88 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 4 Dec 2023 10:17:52 +0100 Subject: [PATCH] Don't allow yaml dashboard to be in edit mode (#18879) --- src/panels/lovelace/hui-root.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index de19739ff8..77ed7aedd6 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -580,7 +580,7 @@ class HUIRoot extends LitElement { const searchParams = extractSearchParamsObject(); if (searchParams.edit === "1") { this._clearParam("edit"); - if (this.hass!.user?.is_admin) { + if (this.hass!.user?.is_admin && this.lovelace!.mode === "storage") { this.lovelace!.setEditMode(true); } } else if (searchParams.conversation === "1") {