From 3b2d4de3139f2168878d5e8d96d6a4976ad7b942 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 22 Jul 2018 10:55:13 +0200 Subject: [PATCH] Add example to show single entity conditionally (#1498) --- gallery/src/demos/demo-hui-entity-filter-card.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gallery/src/demos/demo-hui-entity-filter-card.js b/gallery/src/demos/demo-hui-entity-filter-card.js index b49bf6070c..5eb831da0b 100644 --- a/gallery/src/demos/demo-hui-entity-filter-card.js +++ b/gallery/src/demos/demo-hui-entity-filter-card.js @@ -39,6 +39,19 @@ const CONFIGS = [ show_state: false ` }, + { + heading: 'Showing single entity conditionally', + config: ` +- type: entity-filter + entities: + - media_player.lounge_room + state_filter: + - 'playing' + card: + type: media-control + entity: media_player.lounge_room + ` + } ]; class DemoFilter extends PolymerElement {