From 94e53b75008a7a020cc088990cb4e1d94c697fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Wiedemann?= Date: Sun, 5 Jan 2020 16:03:32 +0100 Subject: [PATCH] Fix variables documentation --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e8071a5..6aee1fb 100644 --- a/README.md +++ b/README.md @@ -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