mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-18 16:16:38 +00:00
Add energy distribution card to arsaboo demo (#9702)
* Add energy distribution card to arsaboo demo * Make link dashboard conform
This commit is contained in:
parent
37f1bd7d63
commit
1f9c45b11c
@ -29,6 +29,11 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "Energy distribution today",
|
||||||
|
type: "energy-distribution",
|
||||||
|
link_dashboard: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "thermostat",
|
type: "thermostat",
|
||||||
entity: "climate.upstairs",
|
entity: "climate.upstairs",
|
||||||
|
@ -402,7 +402,7 @@ class HuiEnergyDistrubutionCard
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
${this._config.linkDashboard
|
${this._config.link_dashboard
|
||||||
? html`
|
? html`
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<a href="/energy"
|
<a href="/energy"
|
||||||
|
@ -98,7 +98,7 @@ export interface EnergySummaryCardConfig extends LovelaceCardConfig {
|
|||||||
export interface EnergyDistributionCardConfig extends LovelaceCardConfig {
|
export interface EnergyDistributionCardConfig extends LovelaceCardConfig {
|
||||||
type: "energy-distribution";
|
type: "energy-distribution";
|
||||||
title?: string;
|
title?: string;
|
||||||
linkDashboard?: boolean;
|
link_dashboard?: boolean;
|
||||||
collection_key?: string;
|
collection_key?: string;
|
||||||
}
|
}
|
||||||
export interface EnergyUsageGraphCardConfig extends LovelaceCardConfig {
|
export interface EnergyUsageGraphCardConfig extends LovelaceCardConfig {
|
||||||
|
@ -352,7 +352,7 @@ export const generateDefaultViewConfig = (
|
|||||||
areaCards.push({
|
areaCards.push({
|
||||||
title: "Energy distribution today",
|
title: "Energy distribution today",
|
||||||
type: "energy-distribution",
|
type: "energy-distribution",
|
||||||
linkDashboard: true,
|
link_dashboard: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user