mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
20210803.2 (#9704)
* Add energy distribution card to arsaboo demo (#9702) * Add energy distribution card to arsaboo demo * Make link dashboard conform * Bumped version to 20210803.2
This commit is contained in:
parent
68bec5e158
commit
1dd3e2a83b
@ -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",
|
||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name="home-assistant-frontend",
|
||||
version="20210803.1",
|
||||
version="20210803.2",
|
||||
description="The Home Assistant frontend",
|
||||
url="https://github.com/home-assistant/frontend",
|
||||
author="The Home Assistant Authors",
|
||||
|
@ -402,7 +402,7 @@ class HuiEnergyDistrubutionCard
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
${this._config.linkDashboard
|
||||
${this._config.link_dashboard
|
||||
? html`
|
||||
<div class="card-actions">
|
||||
<a href="/energy"
|
||||
|
@ -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 {
|
||||
|
@ -352,7 +352,7 @@ export const generateDefaultViewConfig = (
|
||||
areaCards.push({
|
||||
title: "Energy distribution today",
|
||||
type: "energy-distribution",
|
||||
linkDashboard: true,
|
||||
link_dashboard: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user