mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix statistic card default config (#14262)
This commit is contained in:
parent
98a32041d4
commit
79c8b7dc27
@ -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" } },
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user