Skip to content

Commit 10dfc2c

Browse files
authored
Update predbat-table-card.js
Actual fix for state names
1 parent 00ce095 commit 10dfc2c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

predbat-table-card.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,15 +1519,16 @@ class PredbatTableCard extends HTMLElement {
15191519
cellResponseArray.push(this.getCellsForSplitCell(theItem, newCell));
15201520

15211521
} else {
1522-
1523-
stateText = this.adjustStatusFields(theItem.value);
1522+
1523+
stateText = theItem.value.replace(/[🐌]/g, '').trim();
1524+
stateText = this.adjustStatusFields(stateText);
15241525
if(this.config.use_friendly_states)
15251526
stateText = this.getFriendlyNamesForState(theItem.value);
15261527

15271528
cellResponseArray = this.replaceArrowsWithIcons(theItem.value);
15281529

1529-
if(this.config.use_friendly_states)
1530-
cellResponseArray[0] = stateText;
1530+
//if(this.config.use_friendly_states)
1531+
cellResponseArray[0] = stateText;
15311532
}
15321533
} else {
15331534

0 commit comments

Comments
 (0)