Report in progress only in reser state

This commit is contained in:
Anton Sergunov 2024-06-03 12:28:36 +00:00
parent dca2ec020e
commit 15264bce82

View file

@ -129,7 +129,7 @@ void SNTPComponent::loop() {
this->has_time_ = true; this->has_time_ = true;
} }
bool SNTPComponent::is_in_progress() const { return sntp_get_sync_status() != SNTP_SYNC_STATUS_COMPLETED; } bool SNTPComponent::is_in_progress() const { return sntp_get_sync_status() == SNTP_SYNC_STATUS_RESET; }
} // namespace sntp } // namespace sntp
} // namespace esphome } // namespace esphome