diff --git a/src/panels/lovelace/editor/config-elements/hui-clock-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-clock-card-editor.ts index 423dd58ac0..e53eeb28d1 100644 --- a/src/panels/lovelace/editor/config-elements/hui-clock-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-clock-card-editor.ts @@ -261,7 +261,7 @@ export class HuiClockCardEditor ] as const satisfies readonly HaFormSchema[] ); - private _data = memoizeOne((config) => ({ + private _data = memoizeOne((config: ClockCardConfig) => ({ clock_style: "digital", clock_size: "small", time_format: "auto", @@ -365,7 +365,7 @@ export class HuiClockCardEditor return this.hass!.localize( `ui.panel.lovelace.editor.card.clock.no_background` ); - case "date": + case "date": return this.hass!.localize( `ui.panel.lovelace.editor.card.clock.date.label` );