mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
Update serial_no.yaml
This commit is contained in:
committed by
GitHub
parent
c1e24bd26f
commit
0d1676a53f
@@ -4,7 +4,7 @@ text_sensor:
|
|||||||
id: serial_no
|
id: serial_no
|
||||||
lambda: |-
|
lambda: |-
|
||||||
std::string mac = get_mac_address();
|
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
|
icon: mdi:expansion-card-variant
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
update_interval: 60min
|
update_interval: 60min
|
||||||
|
|||||||
Reference in New Issue
Block a user