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

add missed remake

This commit is contained in:
J. Nick Koston
2025-07-06 20:59:43 -05:00
parent 7eb029f4b9
commit ec65652567

View File

@@ -314,6 +314,8 @@ void HOT Scheduler::call() {
// Replace items_ with the filtered list // Replace items_ with the filtered list
this->items_ = std::move(valid_items); this->items_ = std::move(valid_items);
// Rebuild the heap structure since items are no longer in heap order
std::make_heap(this->items_.begin(), this->items_.end(), SchedulerItem::cmp);
this->to_remove_ = 0; this->to_remove_ = 0;
} }