Fix statistic card default config (#14262)

This commit is contained in:
Bram Kragten 2022-11-02 18:26:09 +01:00 committed by GitHub
parent 98a32041d4
commit 79c8b7dc27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ export class HuiStatisticCard extends LitElement implements LovelaceCard {
return {
entity: foundEntities[0] || "",
period: { calendar: { period: "month", offset: 0 } },
period: { calendar: { period: "month" } },
};
}

View File

@ -311,7 +311,7 @@ export interface StatisticsGraphCardConfig extends LovelaceCardConfig {
}
export interface StatisticCardConfig extends LovelaceCardConfig {
title?: string;
name?: string;
entities: Array<EntityConfig | string>;
period: {
fixed_period?: { start: string; end: string };