From a7cb7573694d110569e97e41e1bfb73c4f598731 Mon Sep 17 00:00:00 2001 From: Quentame Date: Tue, 14 May 2024 01:32:55 +0000 Subject: [PATCH] Add show_empty config --- .../editor/config-elements/hui-entity-filter-card-editor.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panels/lovelace/editor/config-elements/hui-entity-filter-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-entity-filter-card-editor.ts index 1d9c035a2602..27a4d9dbdb42 100644 --- a/src/panels/lovelace/editor/config-elements/hui-entity-filter-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-entity-filter-card-editor.ts @@ -7,6 +7,7 @@ import { array, assert, assign, + boolean, literal, number, object, @@ -44,6 +45,7 @@ const cardConfigStruct = assign( type: optional(union([literal("entities"), literal("glance")])), }) ), + show_empty: optional(boolean()), entities: array(entitiesConfigStruct), conditions: optional(array(any())), }) @@ -52,6 +54,7 @@ const cardConfigStruct = assign( const SCHEMA = [ { name: "title", selector: { text: {} } }, { name: "type", selector: { text: {} } }, + { name: "show_empty", selector: { boolean: {} } }, ] as const; @customElement("hui-entity-filter-card-editor")