Merge pull request #5770 from home-assistant/c727-ll-ent-obj

Lovelace: Add entity object options for entities card
This commit is contained in:
DubhAd 2018-07-12 09:24:17 +01:00 committed by GitHub
commit 993b9f9909
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