pacemaker82 / PredBat-Table-Card

A custom Predbat table card that allows flexible column management and styling
7 stars 1 forks source link

Fixed text-labelling issue Planned Charge when Friendly-text set True #18

Closed Mikebert4 closed 2 months ago

Mikebert4 commented 2 months ago

Love the card - spotted something that might be intended behaviour, but that felt off... so here's a PR for a fix

Previous behaviour:

when friendlyText = "NoCharge":

line 405 replaces this with 'Charge to "Limit"' and then line 406 replaces the word "Charge" with "Planned Charge"

Resulting in friendlyText = Planned Charge to "Limit" - which seemed not the desired result

pacemaker82 commented 2 months ago

good catch - thanks!