mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Add unit_of_measurement to input-number-entity-row (#6965)
This commit is contained in:
parent
590cd8500d
commit
2f21f6ef8a
@ -94,6 +94,7 @@ class HuiInputNumberEntityRow extends LitElement implements LovelaceRow {
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: html`
|
: html`
|
||||||
|
<div class="flex state">
|
||||||
<paper-input
|
<paper-input
|
||||||
no-label-float
|
no-label-float
|
||||||
auto-validate
|
auto-validate
|
||||||
@ -107,6 +108,8 @@ class HuiInputNumberEntityRow extends LitElement implements LovelaceRow {
|
|||||||
@change="${this._selectedValueChanged}"
|
@change="${this._selectedValueChanged}"
|
||||||
id="input"
|
id="input"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
|
${stateObj.attributes.unit_of_measurement}
|
||||||
|
</div>
|
||||||
`}
|
`}
|
||||||
</hui-generic-entity-row>
|
</hui-generic-entity-row>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user