mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 18:54:14 +01:00
Report in progress only in reser state
This commit is contained in:
parent
dca2ec020e
commit
15264bce82
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue