Merge pull request #30 from SQ9MDD/main

Update serial_no.yaml
This commit is contained in:
Pawel
2025-07-18 09:03:28 +02:00
committed by GitHub

View File

@@ -4,7 +4,7 @@ text_sensor:
id: serial_no
lambda: |-
std::string mac = get_mac_address();
return to_string("${serial_prefix}") + mac.erase(0, mac.length()/2);
return std::string("${serial_prefix}") + mac.substr(mac.length()/2);
icon: mdi:expansion-card-variant
entity_category: diagnostic
update_interval: 60min