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>
|
||||
`
|
||||
: html`
|
||||
<div class="flex state">
|
||||
<paper-input
|
||||
no-label-float
|
||||
auto-validate
|
||||
@ -107,6 +108,8 @@ class HuiInputNumberEntityRow extends LitElement implements LovelaceRow {
|
||||
@change="${this._selectedValueChanged}"
|
||||
id="input"
|
||||
></paper-input>
|
||||
${stateObj.attributes.unit_of_measurement}
|
||||
</div>
|
||||
`}
|
||||
</hui-generic-entity-row>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user