mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Convert GPS to uppercase in attribute name (#9124)
This commit is contained in:
parent
a94f85a100
commit
abcdd60a21
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user