picture elements card: rename 'service' to 'action' (#33846)

This commit is contained in:
c0ffeeca7 2024-07-17 10:57:20 +02:00 committed by GitHub
parent 321275e2a6
commit ddf16cf2a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,7 @@ There are several different element types that can be added to a Picture Element
- [State badge](#state-badge) - [State badge](#state-badge)
- [State Icon](#state-icon) - [State Icon](#state-icon)
- [State Label](#state-label) - [State Label](#state-label)
- [Service Call Button](#service-call-button) - [Perform action button](#perform-action-button)
- [Icon](#icon-element) - [Icon](#icon-element)
- [Image](#image-element) - [Image](#image-element)
- [Conditional](#conditional-element) - [Conditional](#conditional-element)
@ -215,9 +215,9 @@ style:
default: "position: absolute, transform: translate(-50%, -50%)" default: "position: absolute, transform: translate(-50%, -50%)"
{% endconfiguration %} {% endconfiguration %}
### Service call button ### Perform action button
This entity creates a button (with arbitrary text) that can be used to call a service. This entity creates a button (with arbitrary text) that can be used to perform a service.
{% configuration %} {% configuration %}
type: type:
@ -234,7 +234,7 @@ service:
type: string type: string
service_data: service_data:
required: false required: false
description: The service data to use. description: The data to use.
type: map type: map
style: style:
required: true required: true
@ -540,7 +540,7 @@ elements:
width: 10% width: 10%
border: 2px solid red border: 2px solid red
border-radius: 10% border-radius: 10%
# Single image, state_filter - call-service on click # Single image, state_filter - perform action on click
- type: image - type: image
entity: media_player.living_room entity: media_player.living_room
tap_action: tap_action: