From 17d20efe731a111249a76ee343fd31f7e24ffd99 Mon Sep 17 00:00:00 2001 From: Andrew Reiter Date: Mon, 24 Jun 2024 14:55:45 -0400 Subject: [PATCH] Revert UI addition PR reviewer suggested it was too confusing, especially without dynamically hiding the overridden days_to_show option. --- .../config-elements/hui-statistics-graph-card-editor.ts | 7 ------- src/translations/en.json | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts index e926f4ae35c4..fb236112f177 100644 --- a/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts @@ -73,7 +73,6 @@ const cardConfigStruct = assign( unit: optional(string()), hide_legend: optional(boolean()), logarithmic_scale: optional(boolean()), - energy_date_selection: optional(boolean()), }) ); @@ -218,11 +217,6 @@ export class HuiStatisticsGraphCardEditor required: false, selector: { boolean: {} }, }, - { - name: "energy_date_selection", - required: false, - selector: { boolean: {} }, - }, ], }, ]; @@ -359,7 +353,6 @@ export class HuiStatisticsGraphCardEditor case "unit": case "hide_legend": case "logarithmic_scale": - case "energy_date_selection": return this.hass!.localize( `ui.panel.lovelace.editor.card.statistics-graph.${schema.name}` ); diff --git a/src/translations/en.json b/src/translations/en.json index b6d2ba67e1f8..ed0696c663dd 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -5785,8 +5785,7 @@ "pick_statistic": "Add a statistic", "picked_statistic": "Statistic", "hide_legend": "Hide legend", - "logarithmic_scale": "Logarithmic scale", - "energy_date_selection": "Use Energy Date Picker instead of Days to Show" + "logarithmic_scale": "Logarithmic scale" }, "statistic": { "name": "Statistic",