mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Remove refresh interval configuration option from history graph card (#15154)
This commit is contained in:
parent
6fc5fd9cc4
commit
f991a1b819
@ -299,7 +299,6 @@ export interface MediaControlCardConfig extends LovelaceCardConfig {
|
|||||||
export interface HistoryGraphCardConfig extends LovelaceCardConfig {
|
export interface HistoryGraphCardConfig extends LovelaceCardConfig {
|
||||||
entities: Array<EntityConfig | string>;
|
entities: Array<EntityConfig | string>;
|
||||||
hours_to_show?: number;
|
hours_to_show?: number;
|
||||||
refresh_interval?: number;
|
|
||||||
title?: string;
|
title?: string;
|
||||||
show_names?: boolean;
|
show_names?: boolean;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ const cardConfigStruct = assign(
|
|||||||
entities: array(entitiesConfigStruct),
|
entities: array(entitiesConfigStruct),
|
||||||
title: optional(string()),
|
title: optional(string()),
|
||||||
hours_to_show: optional(number()),
|
hours_to_show: optional(number()),
|
||||||
refresh_interval: optional(number()),
|
refresh_interval: optional(number()), // deprecated
|
||||||
show_names: optional(boolean()),
|
show_names: optional(boolean()),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -40,10 +40,6 @@ const SCHEMA = [
|
|||||||
type: "grid",
|
type: "grid",
|
||||||
schema: [
|
schema: [
|
||||||
{ name: "hours_to_show", selector: { number: { min: 1, mode: "box" } } },
|
{ name: "hours_to_show", selector: { number: { min: 1, mode: "box" } } },
|
||||||
{
|
|
||||||
name: "refresh_interval",
|
|
||||||
selector: { number: { min: 1, mode: "box" } },
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
] as const;
|
] as const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user