Skip to content

Commit

Permalink
Add show_empty config
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame authored May 14, 2024
1 parent 67b23f4 commit a7cb757
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
array,
assert,
assign,
boolean,
literal,
number,
object,
Expand Down Expand Up @@ -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())),
})
Expand All @@ -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")
Expand Down

0 comments on commit a7cb757

Please sign in to comment.