Update nspanel_esphome_core.yaml
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user