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 <mail@bramkragten.nl>

* Update source/lovelace/actions.markdown

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* ✏️ Indent fix

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
bransjr 2020-03-30 04:24:16 -07:00 committed by GitHub
parent 7065f30b35
commit 0e057107c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,8 +161,11 @@ double_tap_action:
If you define confirmation as an object instead of boolean, you can add more customization and configurations. If you define confirmation as an object instead of boolean, you can add more customization and configurations.
```yaml ```yaml
hold_action: double_tap_action:
action: toggle action: call-service
confirmation:
text: Are you sure you want to restart?
service: script.restart
``` ```
{% configuration confirmation%} {% configuration confirmation%}