mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Cleanup (#2837)
This commit is contained in:
parent
220fec6dc9
commit
63e6506510
@ -71,7 +71,7 @@ class HuiInputNumberEntityRow extends LitElement implements EntityRow {
|
|||||||
? html`
|
? html`
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<ha-slider
|
<ha-slider
|
||||||
.dir="${this._computeRTLDirection()}"
|
.dir="${computeRTLDirection(this.hass!)}"
|
||||||
.step="${Number(stateObj.attributes.step)}"
|
.step="${Number(stateObj.attributes.step)}"
|
||||||
.min="${Number(stateObj.attributes.min)}"
|
.min="${Number(stateObj.attributes.min)}"
|
||||||
.max="${Number(stateObj.attributes.max)}"
|
.max="${Number(stateObj.attributes.max)}"
|
||||||
@ -149,10 +149,6 @@ class HuiInputNumberEntityRow extends LitElement implements EntityRow {
|
|||||||
setValue(this.hass!, stateObj.entity_id, element.value!);
|
setValue(this.hass!, stateObj.entity_id, element.value!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private _computeRTLDirection(): string {
|
|
||||||
return computeRTLDirection(this.hass!);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user