Duplicates appear with "unique: true" in case of CSS-styling (card-mod)
See original GitHub issueI have duplicates in my auto-entities list in case of using card-mod.
Here is a small example:
- Without card-mod: Here we have a list of sensor.battery_* entities, and two of them are placed on the top of the list (i.e. “static elements”):
type: 'custom:auto-entities'
card:
type: entities
title: example
entities:
- type: section
label: static elements
- entity: sensor.battery_cleargrass_2
- entity: sensor.battery_life360_papa
- type: section
label: auto elements
unique: true
show_empty: true
filter:
include:
- domain: sensor
entity_id: sensor.battery_*
options:
secondary_info: last-changed
sort:
method: state
reverse: false
ignore_case: false
attribute: null
first: 0
count: 1000
numeric: true
- Now let’s apply style to the 1st static element:
type: 'custom:auto-entities'
card:
type: entities
title: example
entities:
- type: section
label: static elements
- entity: sensor.battery_cleargrass_2
style: |
:host {
color: red;
}
- entity: sensor.battery_life360_papa
- type: section
label: auto elements
unique: true
show_empty: true
filter:
include:
- domain: sensor
entity_id: sensor.battery_*
options:
secondary_info: last-changed
sort:
method: state
reverse: false
ignore_case: false
attribute: null
first: 0
count: 1000
numeric: true
Great, the style works fine!
But now we have a duplicate:
Is it a bug?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Power sensors not included with state: "> 0" · Issue #1 - GitHub
If I remove the include->state line, all the entities shows up, but I only want the entities with values greater than 0.0 to...
Read more >[#30716] - [4.0] Cassiopeia - update card mod chrome
In this case drone failed. The "Details" link brings you to a page where on the left hand side is a list of...
Read more >https://tagpacker.com/api/users/5931d58f3a93f114a8...
In this tutorial, we will cover how to use Varnish Cache 4.0 to improve the ... are a number of issues that are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Great job! Three cases, seems to be SOLVED.
Case #2 - “unique: true”:
Case #3 - “unique: entity”:
Ok. That’s a bug. I’ll take a look at it.