From 0e057107c8f7d0cf1618be000dc030b3cdb0029b Mon Sep 17 00:00:00 2001 From: bransjr <61677635+bransjr@users.noreply.github.com> Date: Mon, 30 Mar 2020 04:24:16 -0700 Subject: [PATCH] Update actions.markdown (#12532) * Update actions.markdown I added working yaml for a confirmation dialog because there was no actual confirmation in the yaml that was here before. * Update source/lovelace/actions.markdown Co-Authored-By: Bram Kragten * Update source/lovelace/actions.markdown Co-Authored-By: Bram Kragten * :pencil2: Indent fix Co-authored-by: Bram Kragten Co-authored-by: Franck Nijhof --- source/lovelace/actions.markdown | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/lovelace/actions.markdown b/source/lovelace/actions.markdown index f714ec8eb2b..7d49c9e912e 100644 --- a/source/lovelace/actions.markdown +++ b/source/lovelace/actions.markdown @@ -161,8 +161,11 @@ double_tap_action: If you define confirmation as an object instead of boolean, you can add more customization and configurations. ```yaml -hold_action: - action: toggle +double_tap_action: + action: call-service + confirmation: + text: Are you sure you want to restart? + service: script.restart ``` {% configuration confirmation%}