Skip to content

Commit

Permalink
fix: 🐛 soc unit whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
flixlix committed Apr 27, 2024
1 parent 31a9518 commit b3216de
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 b3216de

Please sign in to comment.