Skip to content

Commit

Permalink
Merge pull request #614 from flixlix/612-bug-white-space-cannot-be-re…
Browse files Browse the repository at this point in the history
…moved-for-battery-state-of-charge

fix: 🐛 soc unit whitespace
  • Loading branch information
flixlix committed Aug 26, 2024
2 parents 4b54d5e + b3216de commit 4b5994f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/power-flow-card-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export class PowerFlowCardPlus extends LitElement {
icon: computeFieldIcon(this.hass, entities.battery, "mdi:battery-high"),
state_of_charge: {
state: getBatteryStateOfCharge(this.hass, this._config),
unit: entities?.battery?.state_of_charge_unit || "%",
unit_white_space: entities?.battery?.state_of_charge_unit_white_space || true,
unit: entities?.battery?.state_of_charge_unit ?? "%",
unit_white_space: entities?.battery?.state_of_charge_unit_white_space ?? true,
decimals: entities?.battery?.state_of_charge_decimals || 0,
},
state: {
Expand Down

0 comments on commit 4b5994f

Please sign in to comment.