mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix formatting of mac address fields in device info (#25251)
Previous change lost the `:` seperator, and unexpectedly MAC became title case instead of MAC when dhcp is loaded.
This commit is contained in:
parent
9b7e2886b6
commit
b81d2013dc
@ -106,7 +106,7 @@ export class HaDeviceCard extends LitElement {
|
||||
<div class="extra-info">
|
||||
${type === "bluetooth" &&
|
||||
isComponentLoaded(this.hass, "bluetooth")
|
||||
? html`${titleCase(type)}
|
||||
? html`${titleCase(type)}:
|
||||
<a
|
||||
href="/config/bluetooth/advertisement-monitor?${createSearchParam(
|
||||
{ address: value }
|
||||
@ -114,7 +114,7 @@ export class HaDeviceCard extends LitElement {
|
||||
>${value.toUpperCase()}</a
|
||||
>`
|
||||
: type === "mac" && isComponentLoaded(this.hass, "dhcp")
|
||||
? html`${titleCase(type)}
|
||||
? html`MAC:
|
||||
<a
|
||||
href="/config/dhcp?${createSearchParam({
|
||||
mac_address: value,
|
||||
|
Loading…
x
Reference in New Issue
Block a user