Add energy distribution card to arsaboo demo (#9702)

* Add energy distribution card to arsaboo demo

* Make link dashboard conform
pull/9704/head
Paulus Schoutsen 2021-08-03 15:09:08 -07:00 committed by GitHub
parent 37f1bd7d63
commit 1f9c45b11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -29,6 +29,11 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
},
],
},
{
title: "Energy distribution today",
type: "energy-distribution",
link_dashboard: true,
},
{
type: "thermostat",
entity: "climate.upstairs",

View File

@ -402,7 +402,7 @@ class HuiEnergyDistrubutionCard
</svg>
</div>
</div>
${this._config.linkDashboard
${this._config.link_dashboard
? html`
<div class="card-actions">
<a href="/energy"

View File

@ -98,7 +98,7 @@ export interface EnergySummaryCardConfig extends LovelaceCardConfig {
export interface EnergyDistributionCardConfig extends LovelaceCardConfig {
type: "energy-distribution";
title?: string;
linkDashboard?: boolean;
link_dashboard?: boolean;
collection_key?: string;
}
export interface EnergyUsageGraphCardConfig extends LovelaceCardConfig {

View File

@ -352,7 +352,7 @@ export const generateDefaultViewConfig = (
areaCards.push({
title: "Energy distribution today",
type: "energy-distribution",
linkDashboard: true,
link_dashboard: true,
});
}
}