Skip to content

Commit

Permalink
Remove boolean param energy_date_selection
Browse files Browse the repository at this point in the history
and instead activate when collection_key is specified
  • Loading branch information
madsciencetist committed Jun 24, 2024
1 parent 17d20ef commit 95cebdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/panels/lovelace/cards/hui-statistics-graph-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class HuiStatisticsGraphCard
private _statTypes?: Array<StatisticType>;

public hassSubscribe() {
if (!this._config?.energy_date_selection) {
if (!this._config?.collection_key) {
return [];
}

Expand Down
1 change: 0 additions & 1 deletion src/panels/lovelace/cards/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ export interface StatisticsGraphCardConfig extends EnergyCardBaseConfig {
chart_type?: "line" | "bar";
hide_legend?: boolean;
logarithmic_scale?: boolean;
energy_date_selection?: boolean;
}

export interface StatisticCardConfig extends LovelaceCardConfig {
Expand Down

0 comments on commit 95cebdb

Please sign in to comment.