This commit is contained in:
yosilevy 2019-02-25 21:10:08 +02:00 committed by Paulus Schoutsen
parent 220fec6dc9
commit 63e6506510

View File

@ -71,7 +71,7 @@ class HuiInputNumberEntityRow extends LitElement implements EntityRow {
? html`
<div class="flex">
<ha-slider
.dir="${this._computeRTLDirection()}"
.dir="${computeRTLDirection(this.hass!)}"
.step="${Number(stateObj.attributes.step)}"
.min="${Number(stateObj.attributes.min)}"
.max="${Number(stateObj.attributes.max)}"
@ -149,10 +149,6 @@ class HuiInputNumberEntityRow extends LitElement implements EntityRow {
setValue(this.hass!, stateObj.entity_id, element.value!);
}
}
private _computeRTLDirection(): string {
return computeRTLDirection(this.hass!);
}
}
declare global {