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}