Skip to content

Commit

Permalink
Fix variables documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jan 5, 2020
1 parent 5983dd8 commit 94e53b7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,22 +717,24 @@ An exemple below:
```yaml
button_card_templates:
variable_test:
var_name: "var_value"
var_name2: "var_value2"
variables:
var_name: "var_value"
var_name2: "var_value2"
name: '[[[ return variables.var_name ]]]'
[...]
- type: custom:button-card
template: variable_test
entity: sensor.test
name: '[[[ return variables.var_name ]]]' # The name will be "var_value"
# name will be "var_value"
- type: custom:button-card
template: variable_test
entity: sensor.test
variables:
var_name: "My local Value"
name: '[[[ return variables.var_name ]]]' # The name will be "My local Value"
# name will be "My local Value"
```

## Installation
Expand Down

0 comments on commit 94e53b7

Please sign in to comment.