mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Allow custom UI on "card" entities (#1824)
This will always render entities with `custom_ui_state_card` attribute set in `entities` state card. Fixes custom UI on `media_player` objects.
This commit is contained in:
parent
7ff9211dfc
commit
8902328b30
@ -251,7 +251,10 @@ class HaCards extends PolymerElement {
|
|||||||
entities.forEach((entity) => {
|
entities.forEach((entity) => {
|
||||||
const domain = computeStateDomain(entity);
|
const domain = computeStateDomain(entity);
|
||||||
|
|
||||||
if (domain in DOMAINS_WITH_CARD) {
|
if (
|
||||||
|
domain in DOMAINS_WITH_CARD &&
|
||||||
|
!entity.attributes.custom_ui_state_card
|
||||||
|
) {
|
||||||
owncard.push(entity);
|
owncard.push(entity);
|
||||||
size += DOMAINS_WITH_CARD[domain];
|
size += DOMAINS_WITH_CARD[domain];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user