Remove advanced mode from scenes editor (#25054)

This commit is contained in:
Bram Kragten 2025-04-14 14:41:24 +02:00 committed by GitHub
parent f6e4f4c0d6
commit 53426d647a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 75 additions and 82 deletions

View File

@ -26,8 +26,6 @@ class HaConfigScene extends HassRouterPage {
@property({ attribute: "is-wide", type: Boolean }) public isWide = false; @property({ attribute: "is-wide", type: Boolean }) public isWide = false;
@property({ attribute: false }) public showAdvanced = false;
@property({ attribute: false }) public scenes: SceneEntity[] = []; @property({ attribute: false }) public scenes: SceneEntity[] = [];
protected routerOptions: RouterOptions = { protected routerOptions: RouterOptions = {
@ -62,7 +60,6 @@ class HaConfigScene extends HassRouterPage {
pageEl.narrow = this.narrow; pageEl.narrow = this.narrow;
pageEl.isWide = this.isWide; pageEl.isWide = this.isWide;
pageEl.route = this.routeTail; pageEl.route = this.routeTail;
pageEl.showAdvanced = this.showAdvanced;
if (this.hass) { if (this.hass) {
if (!pageEl.scenes || !changedProps) { if (!pageEl.scenes || !changedProps) {

View File

@ -98,8 +98,6 @@ export class HaSceneEditor extends PreventUnsavedMixin(
@property({ attribute: false }) public scenes!: SceneEntity[]; @property({ attribute: false }) public scenes!: SceneEntity[];
@property({ attribute: false }) public showAdvanced = false;
@state() private _dirty = false; @state() private _dirty = false;
@state() private _errors?: string; @state() private _errors?: string;
@ -486,8 +484,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
: nothing} : nothing}
</ha-config-section> </ha-config-section>
${this.showAdvanced <ha-config-section vertical .isWide=${this.isWide}>
? html` <ha-config-section vertical .isWide=${this.isWide}>
<div slot="header"> <div slot="header">
${this.hass.localize( ${this.hass.localize(
"ui.panel.config.scene.editor.entities.header" "ui.panel.config.scene.editor.entities.header"
@ -566,8 +563,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
</div> </div>
</ha-card>` </ha-card>`
: nothing} : nothing}
</ha-config-section>` </ha-config-section>
: nothing}
` `
: nothing} : nothing}
</div>`; </div>`;