Add unit_of_measurement to input-number-entity-row (#6965)

This commit is contained in:
Joakim Sørensen 2020-09-29 21:55:20 +02:00 committed by GitHub
parent 590cd8500d
commit 2f21f6ef8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
`;