mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16: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">
|
<div class="extra-info">
|
||||||
${type === "bluetooth" &&
|
${type === "bluetooth" &&
|
||||||
isComponentLoaded(this.hass, "bluetooth")
|
isComponentLoaded(this.hass, "bluetooth")
|
||||||
? html`${titleCase(type)}
|
? html`${titleCase(type)}:
|
||||||
<a
|
<a
|
||||||
href="/config/bluetooth/advertisement-monitor?${createSearchParam(
|
href="/config/bluetooth/advertisement-monitor?${createSearchParam(
|
||||||
{ address: value }
|
{ address: value }
|
||||||
@ -114,7 +114,7 @@ export class HaDeviceCard extends LitElement {
|
|||||||
>${value.toUpperCase()}</a
|
>${value.toUpperCase()}</a
|
||||||
>`
|
>`
|
||||||
: type === "mac" && isComponentLoaded(this.hass, "dhcp")
|
: type === "mac" && isComponentLoaded(this.hass, "dhcp")
|
||||||
? html`${titleCase(type)}
|
? html`MAC:
|
||||||
<a
|
<a
|
||||||
href="/config/dhcp?${createSearchParam({
|
href="/config/dhcp?${createSearchParam({
|
||||||
mac_address: value,
|
mac_address: value,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user