mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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 {
|
return {
|
||||||
entity: foundEntities[0] || "",
|
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 {
|
export interface StatisticCardConfig extends LovelaceCardConfig {
|
||||||
title?: string;
|
name?: string;
|
||||||
entities: Array<EntityConfig | string>;
|
entities: Array<EntityConfig | string>;
|
||||||
period: {
|
period: {
|
||||||
fixed_period?: { start: string; end: string };
|
fixed_period?: { start: string; end: string };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user