From 4cfc429e75589e90deced9f1073b9e63bfb75f4b Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 18 Jun 2019 11:57:21 -0700 Subject: [PATCH] Hide unused entities in the demo --- src/panels/lovelace/hui-root.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 8be38c4122..cb87895aaa 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -195,11 +195,15 @@ class HUIRoot extends LitElement { > ` : ""} - ${this.hass!.localize( - "ui.panel.lovelace.menu.unused_entities" - )} + ${__DEMO__ /* No unused entities available in the demo */ + ? "" + : html` + + ${this.hass!.localize( + "ui.panel.lovelace.menu.unused_entities" + )} + + `} ${this.hass!.localize( "ui.panel.lovelace.menu.configure_ui"