Lovelace: Add entity object options for entities card

This commit is contained in:
c727 2018-07-12 00:40:39 +02:00 committed by GitHub
parent 0862da461c
commit 9b9df71844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ type:
type: string
entities:
required: true
description: "A list of entity IDs or an `entity` object."
description: "A list of entity IDs or `entity` objects, see below."
type: list
title:
required: false
@ -32,6 +32,25 @@ show_header_toggle:
default: true
{% endconfiguration %}
## {% linkable_title Options For Entities %}
If you define entities as objects instead of strings, you can add more customization and configuration:
{% configuration %}
entity:
required: true
description: Home Assistant entity ID.
type: string
type:
required: false
description: "Sets a custom card type: `custom:my-custom-card`"
type: string
name:
required: false
description: Overwrites friendly name.
type: string
{% endconfiguration %}
## {% linkable_title Example %}
```yaml