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

small fix

This commit is contained in:
J. Nick Koston
2025-06-14 22:09:19 -05:00
parent 183dd74f3e
commit 8fb3856665

View File

@@ -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