1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

[core] Fix regex for lambda id() replacement (#9975)

This commit is contained in:
Clyde Stubbs
2025-07-31 08:56:43 +10:00
committed by GitHub
parent 110eac4f09
commit 4b7f3355ea
2 changed files with 8 additions and 1 deletions

View File

@@ -8,3 +8,10 @@ logger:
host:
mac_address: "62:23:45:AF:B3:DD"
esphome:
on_boot:
- lambda: |-
static const uint8_t my_addr[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
if (!mac_address_is_valid(my_addr))
ESP_LOGD("test", "Invalid mac address %X", my_addr[0]); // etc.