Remove refresh interval configuration option from history graph card (#15154)

This commit is contained in:
J. Nick Koston 2023-01-22 22:40:59 -10:00 committed by GitHub
parent 6fc5fd9cc4
commit f991a1b819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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;