Skip to content

Commit

Permalink
Convert GPS to uppercase in attribute name (#9124)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacegaier committed May 7, 2021
1 parent a94f85a commit abcdd60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/hass-attributes-util.ts
Expand Up @@ -126,6 +126,7 @@ export function formatAttributeName(value: string): string {
.replace(/_/g, " ")
.replace(/\bid\b/g, "ID")
.replace(/\bip\b/g, "IP")
.replace(/\bmac\b/g, "MAC");
.replace(/\bmac\b/g, "MAC")
.replace(/\bgps\b/g, "GPS");
return value.charAt(0).toUpperCase() + value.slice(1);
}

0 comments on commit abcdd60

Please sign in to comment.