New button card option: show_state (#14002)

This commit is contained in:
Ian Richardson 2020-07-14 16:43:57 -05:00 committed by GitHub
parent f4d5725cbf
commit f837befae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,11 @@ show_icon:
description: Show icon.
type: boolean
default: "true"
show_state:
required: false
description: Show state.
type: boolean
default: "false"
icon_height:
required: false
description: Set the height for the icon. This is in pixels which is handled by the configuration UI. (Advanced users can use other CSS values if they like)
@ -89,6 +94,7 @@ Title and Script Service Example:
```yaml
type: button
name: Turn Off Lights
show_state: false
tap_action:
action: call-service
service: script.turn_on