Convert call-service row to button row (#12545)

This commit is contained in:
Ian Richardson 2020-04-20 03:31:05 -05:00 committed by GitHub
parent 70800bad78
commit cb34796126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,34 +113,33 @@ double_tap_action:
## Special Row Elements ## Special Row Elements
### Call Service ### Button
{% configuration %} {% configuration %}
type: type:
required: true required: true
description: call-service description: button
type: string type: string
name: name:
required: true required: true
description: Main Label. description: Main Label.
type: string type: string
service:
required: true
description: "Service like `media_player.media_play_pause`"
type: string
icon:
required: false
description: "Icon to display (e.g., `mdi:home`)"
type: string
default: "`mdi:remote`"
action_name: action_name:
required: false required: false
description: Button label. description: Button label.
type: string type: string
default: "`Run`" default: "`Run`"
service_data: tap_action:
required: true
description: Action taken on card tap. See [action documentation](/lovelace/actions/#tap-action).
type: map
hold_action:
required: false required: false
description: The service data to use. description: Action taken on card tap and hold. See [action documentation](/lovelace/actions/#hold-action).
type: map
double_tap_action:
required: false
description: Action taken on card double tap. See [action documentation](/lovelace/actions/#double-tap-action).
type: map type: map
{% endconfiguration %} {% endconfiguration %}