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:
J. Nick Koston 2025-04-30 21:16:25 +02:00 committed by Bram Kragten
parent 9b7e2886b6
commit b81d2013dc

View File

@ -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,