1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-16 07:16:58 +02:00
This commit is contained in:
J. Nick Koston 2025-06-14 22:04:33 -05:00
parent 4f29039b41
commit 183dd74f3e
No known key found for this signature in database

View File

@ -12,6 +12,8 @@ class IntervalSyncer : public Component {
void setup() override {
if (this->write_interval_ != 0) {
set_interval(this->write_interval_, []() { global_preferences->sync(); });
// When using interval-based syncing, we don't need the loop
this->mark_loop_done();
}
}
void loop() override {