Skip to content

Commit

Permalink
Revert UI addition
Browse files Browse the repository at this point in the history
PR reviewer suggested it was too confusing, especially without
dynamically hiding the overridden days_to_show option.
  • Loading branch information
madsciencetist committed Jun 24, 2024
1 parent 8bfa3ad commit 17d20ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const cardConfigStruct = assign(
unit: optional(string()),
hide_legend: optional(boolean()),
logarithmic_scale: optional(boolean()),
energy_date_selection: optional(boolean()),
})
);

Expand Down Expand Up @@ -218,11 +217,6 @@ export class HuiStatisticsGraphCardEditor
required: false,
selector: { boolean: {} },
},
{
name: "energy_date_selection",
required: false,
selector: { boolean: {} },
},
],
},
];
Expand Down Expand Up @@ -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}`
);
Expand Down
3 changes: 1 addition & 2 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 17d20ef

Please sign in to comment.