mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Add example to show single entity conditionally (#1498)
This commit is contained in:
parent
aaea698a6c
commit
3b2d4de313
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user