Skip to content

Commit

Permalink
Update README.md: fix wrong example
Browse files Browse the repository at this point in the history
  • Loading branch information
ildar170975 authored Jan 9, 2024
1 parent d616b6c commit bcbc09b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ card:
```yaml
type: 'custom:config-template-card'
variables:
- states['sensor.light'].state
- states['sensor.light']
entities:
- '${vars[0]}'
- '${vars[0].entity_id}'
card:
type: light
entity: '${vars[0]}'
name: "${states[vars[0]].state === 'on' ? 'Light On' : 'Light Off'}"
entity: '${vars[0].entity_id}'
name: "${vars[0].state === 'on' ? 'Light On' : 'Light Off'}"
```

### Picture-elements card example
Expand Down

0 comments on commit bcbc09b

Please sign in to comment.