Clean generated config for tile in sections (#19974)

* Do not include show_entity_picture false in tile card config

* Update src/panels/lovelace/common/generate-lovelace-config.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Paul Bottein 2024-03-04 15:50:40 +01:00 committed by GitHub
parent 05e2e305e4
commit 0c6bf701c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,9 +112,9 @@ export const computeSection = (
({ ({
type: "tile", type: "tile",
entity, entity,
show_entity_picture: ["person", "camera", "image"].includes( show_entity_picture:
computeDomain(entity) ["person", "camera", "image"].includes(computeDomain(entity)) ||
), undefined,
}) as TileCardConfig }) as TileCardConfig
), ),
...sectionOptions, ...sectionOptions,