mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Cleanup (#2837)
This commit is contained in:
parent
220fec6dc9
commit
63e6506510
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user