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: false }) public showAdvanced = false;
@property({ attribute: false }) public scenes: SceneEntity[] = [];
protected routerOptions: RouterOptions = {
@ -62,7 +60,6 @@ class HaConfigScene extends HassRouterPage {
pageEl.narrow = this.narrow;
pageEl.isWide = this.isWide;
pageEl.route = this.routeTail;
pageEl.showAdvanced = this.showAdvanced;
if (this.hass) {
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 showAdvanced = false;
@state() private _dirty = false;
@state() private _errors?: string;
@ -486,8 +484,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
: nothing}
</ha-config-section>
${this.showAdvanced
? html` <ha-config-section vertical .isWide=${this.isWide}>
<ha-config-section vertical .isWide=${this.isWide}>
<div slot="header">
${this.hass.localize(
"ui.panel.config.scene.editor.entities.header"
@ -566,8 +563,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
</div>
</ha-card>`
: nothing}
</ha-config-section>`
: nothing}
</ha-config-section>
`
: nothing}
</div>`;