[sntp] Merge multiple instances to fix crash and undefined behavior

This commit is contained in:
J. Nick Koston
2025-11-14 08:47:15 -06:00
parent 67524e14ee
commit e8f2e91db3
4 changed files with 329 additions and 0 deletions
@@ -0,0 +1,22 @@
esphome:
name: sntp-test
esp32:
board: esp32dev
framework:
type: esp-idf
wifi:
ssid: "testssid"
password: "testpassword"
# Test multiple SNTP instances that should be merged
time:
- platform: sntp
servers:
- 192.168.1.1
- pool.ntp.org
- platform: sntp
servers:
- pool.ntp.org
- 192.168.1.2