From 49170c1b6ad9bde36113bb4b5f8b079821666748 Mon Sep 17 00:00:00 2001 From: MichaelHeimann Date: Thu, 4 Apr 2024 12:11:26 +0200 Subject: [PATCH] Update nspanel_esphome_core.yaml --- esphome/nspanel_esphome_core.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/nspanel_esphome_core.yaml b/esphome/nspanel_esphome_core.yaml index c34edaf..09b8e7a 100644 --- a/esphome/nspanel_esphome_core.yaml +++ b/esphome/nspanel_esphome_core.yaml @@ -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: