From 701cbcfbadd12a6c060506dc3e31cae2f46423df Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Fri, 5 Sep 2025 20:13:28 +0200 Subject: [PATCH] Do not show `state-card-content` in new more-info dialog in gallery (#26889) * Do not show `state-card-content` in new more-info dialog in gallery * Use `computeShowNewMoreInfo` --- gallery/src/components/demo-more-info.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gallery/src/components/demo-more-info.ts b/gallery/src/components/demo-more-info.ts index 0b6223531e..135c73975f 100644 --- a/gallery/src/components/demo-more-info.ts +++ b/gallery/src/components/demo-more-info.ts @@ -1,10 +1,11 @@ -import { LitElement, css, html } from "lit"; +import { LitElement, css, html, nothing } from "lit"; import { customElement, property } from "lit/decorators"; import "../../../src/components/ha-card"; import "../../../src/dialogs/more-info/more-info-content"; import "../../../src/state-summary/state-card-content"; import "../ha-demo-options"; import type { HomeAssistant } from "../../../src/types"; +import { computeShowNewMoreInfo } from "../../../src/dialogs/more-info/const"; @customElement("demo-more-info") class DemoMoreInfo extends LitElement { @@ -21,11 +22,13 @@ class DemoMoreInfo extends LitElement {
- + ${!computeShowNewMoreInfo(state) + ? html`` + : nothing}