Fix capitalization of state attributes (#7448)

This commit is contained in:
Philip Allgaier 2020-10-22 23:13:36 +02:00 committed by GitHub
parent eceed4ed74
commit 6aff35196d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ class HaAttributes extends LitElement {
(attribute) => html`
<div class="data-entry">
<div class="key">
${attribute.replace(/_/g, " ").replace("id", "ID")}
${attribute.replace(/_/g, " ").replace(/\bid\b/g, "ID")}
</div>
<div class="value">
${this.formatAttribute(attribute)}