Picture cards: rename 'service' to 'action' (#33787)

This commit is contained in:
c0ffeeca7 2024-07-16 14:24:07 +02:00 committed by GitHub
parent 85b087110d
commit 0bdd1eb887
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -183,7 +183,7 @@ If your camera supports <abbr title="pan, tilt, and zoom">PTZ</abbr> (can be mov
4. Select **Show code editor**. 4. Select **Show code editor**.
5. For each of the entities, specify an icon, as indicated in the YAML example. 5. For each of the entities, specify an icon, as indicated in the YAML example.
6. For the buttons to react on press (instead of bringing up the dialog): 6. For the buttons to react on press (instead of bringing up the dialog):
- For each of the entities, under `tap_action`, call a `button.press` service. - For each of the entities, under `tap_action`, use a `button.press` action.
```yaml ```yaml
camera_view: live camera_view: live

View File

@ -2,7 +2,7 @@
type: card type: card
title: "Picture card" title: "Picture card"
sidebar_label: Picture sidebar_label: Picture
description: "The picture card allows you to set an image to use for navigation to various paths in your interface or to call a service." description: "The picture card allows you to set an image to use for navigation to various paths in your interface or to perform an action."
related: related:
- docs: /dashboards/actions/ - docs: /dashboards/actions/
title: Card actions title: Card actions
@ -12,7 +12,7 @@ related:
title: Dashboard cards title: Dashboard cards
--- ---
The picture card allows you to set an image to use for navigation to various paths in your interface or to call a service. The picture card allows you to set an image to use for navigation to various paths in your interface or to perform an action.
<p class='img'> <p class='img'>
<img src='/images/dashboards/picture.png' alt='Screenshot of the picture card'> <img src='/images/dashboards/picture.png' alt='Screenshot of the picture card'>
@ -70,7 +70,7 @@ tap_action:
Check the [views](/dashboards/views/) setup on how to setup custom IDs. Check the [views](/dashboards/views/) setup on how to setup custom IDs.
Toggle entity using a service: Toggle entity using an action:
```yaml ```yaml
type: picture type: picture