Fix blank_before_percent (#19397)

* Fix blank_before_percent

* types n stuff
This commit is contained in:
karwosts
2024-01-14 12:23:42 -08:00
committed by GitHub
parent 7c389a6cf0
commit 5aa5ce8b5e
6 changed files with 10 additions and 6 deletions

View File

@@ -136,7 +136,9 @@ export class HaControlNumberButton extends LitElement {
this.value != null
? formatNumber(this.value, this.locale, this.formatOptions)
: "";
const unit = this.unit ? `${blankBeforeUnit(this.unit)}${this.unit}` : "";
const unit = this.unit
? `${blankBeforeUnit(this.unit, this.locale)}${this.unit}`
: "";
return html`
<div class="container">