Closed steven-hack closed 1 year ago
Have to confirm the issue.
The first
option does not work if the count
option is not set.
Test code (used sun.sun
entity):
type: vertical-stack
cards:
- &ref_card
type: custom:auto-entities
card:
type: entities
filter:
template: |-
{% set SENSOR = 'sun.sun' -%}
{%- for attr in states[SENSOR].attributes -%}
{{
{
'type': 'attribute',
'entity': SENSOR,
'attribute': attr,
'name': attr
}
}},
{%- endfor %}
- <<: *ref_card
sort:
count: 6
- <<: *ref_card
sort:
first: 2
count: 6
- <<: *ref_card
sort:
first: 2
Hi,
I would like to display everything except the first X entries, but it seems the
first
parameter does not work without thecount
parameter. (As i don't know what the total amount is, I can't fill in a Count). Ofcourse a work-around for this is to just addcount: 999999
but it would be nice iffirst
would work like askip
when not usingcount
.Below example will display the two entities (of the two available):
The following will correctly skip the first one and only display one entity: