mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-11 11:26:35 +00:00
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:
parent
05e2e305e4
commit
0c6bf701c7
@ -112,9 +112,9 @@ export const computeSection = (
|
||||
({
|
||||
type: "tile",
|
||||
entity,
|
||||
show_entity_picture: ["person", "camera", "image"].includes(
|
||||
computeDomain(entity)
|
||||
),
|
||||
show_entity_picture:
|
||||
["person", "camera", "image"].includes(computeDomain(entity)) ||
|
||||
undefined,
|
||||
}) as TileCardConfig
|
||||
),
|
||||
...sectionOptions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user