mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-19 19:07:23 +00:00
Show cameras on 2 rows in areas strategy (#24743)
Show cameras on 2 rows in areas
This commit is contained in:
parent
cd9faf7d67
commit
420477e416
@ -210,8 +210,18 @@ export const computeAreaTileCardConfig =
|
||||
const additionalCardConfig: Partial<TileCardConfig> = {};
|
||||
|
||||
const domain = computeDomain(entity);
|
||||
|
||||
if (domain === "camera") {
|
||||
additionalCardConfig.show_entity_picture = true;
|
||||
return {
|
||||
type: "picture-entity",
|
||||
entity: entity,
|
||||
show_state: false,
|
||||
show_name: false,
|
||||
grid_options: {
|
||||
columns: 6,
|
||||
rows: 2,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
let feature: LovelaceCardFeatureConfig | undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user