From 6aff35196d9f3cfa8c8a7874bbf148067509671e Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Thu, 22 Oct 2020 23:13:36 +0200 Subject: [PATCH] Fix capitalization of state attributes (#7448) --- src/components/ha-attributes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ha-attributes.ts b/src/components/ha-attributes.ts index 933ed41d19..892148e664 100644 --- a/src/components/ha-attributes.ts +++ b/src/components/ha-attributes.ts @@ -34,7 +34,7 @@ class HaAttributes extends LitElement { (attribute) => html`
- ${attribute.replace(/_/g, " ").replace("id", "ID")} + ${attribute.replace(/_/g, " ").replace(/\bid\b/g, "ID")}
${this.formatAttribute(attribute)}