Update nspanel_esphome_core.yaml

This commit is contained in:
MichaelHeimann
2024-04-03 20:32:22 +02:00
committed by GitHub
parent 1f835c5a48
commit 59f9b1ffb5

View File

@@ -1706,10 +1706,10 @@ text_sensor:
internal: false
disabled_by_default: false
lambda: |-
if !(${pre_built}) {
if (!${pre_built}) {
return {"${name}"};
} else {
byte mac[6];
std::byte mac[6];
WiFi.macAddress(mac);
String suffix = String(mac[3],HEX) + String(mac[4],HEX) + String(mac[5],HEX);
return {"${name}-" + suffix};