mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +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 additionalCardConfig: Partial<TileCardConfig> = {};
|
||||||
|
|
||||||
const domain = computeDomain(entity);
|
const domain = computeDomain(entity);
|
||||||
|
|
||||||
if (domain === "camera") {
|
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;
|
let feature: LovelaceCardFeatureConfig | undefined;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user