From 8fb385666554f5e30b37db7f3ab6fbce5ccdae1d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 14 Jun 2025 22:09:19 -0500 Subject: [PATCH] small fix --- esphome/components/sntp/sntp_component.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/components/sntp/sntp_component.cpp b/esphome/components/sntp/sntp_component.cpp index 72ce972b1e..ab02720dd9 100644 --- a/esphome/components/sntp/sntp_component.cpp +++ b/esphome/components/sntp/sntp_component.cpp @@ -68,8 +68,11 @@ void SNTPComponent::loop() { this->time_sync_callback_.call(); this->has_time_ = true; +#ifdef USE_ESP_IDF + // On ESP-IDF, time sync is permanent and update() doesn't force resync // Time is now synchronized, no need to check anymore this->mark_loop_done(); +#endif } } // namespace sntp