Update nspanel_esphome_core.yaml
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#####################################################################################################
|
||||
/suffix#####################################################################################################
|
||||
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
||||
##### ESPHOME CORE #####
|
||||
##### PLEASE only make changes if it is necessary and also the required knowledge is available. #####
|
||||
@@ -1712,7 +1712,7 @@ text_sensor:
|
||||
uint8_t mac[6] = {0};
|
||||
esp_err_t ret = ESP_OK;
|
||||
ret = esp_read_mac(mac, ESP_MAC_WIFI_STA);
|
||||
String suffix = String(mac[3],16) + String(mac[4],16) + String(mac[5],16);
|
||||
std::string suffix = std::string(mac[3],16) + std::string(mac[4],16) + std::string(mac[5],16);
|
||||
return {"${name}-" + suffix};
|
||||
}
|
||||
filters:
|
||||
|
||||
Reference in New Issue
Block a user