Skip to content

Commit

Permalink
pr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDeveaux committed Dec 7, 2024
1 parent e5d6f6e commit e40d679
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,8 @@ class MiniGraphCard extends LitElement {
generateLegend(index) {
let legend = this.computeName(index);
const state = this.getEntityState(index);
const show_legend_state = this.config.entities[index];

if (show_legend_state) {
if (this.config.entities[index].show_legend_state) {
legend += ` (${this.computeState(state)} ${this.computeUom(index)})`;
}

Expand Down

0 comments on commit e40d679

Please sign in to comment.