mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
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:
parent
7065f30b35
commit
0e057107c8
@ -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%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user