mirror of
https://github.com/esphome/esphome.git
synced 2025-08-05 09:57:47 +00:00
add missed remake
This commit is contained in:
parent
7eb029f4b9
commit
ec65652567
@ -314,6 +314,8 @@ void HOT Scheduler::call() {
|
||||
|
||||
// Replace items_ with the filtered list
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user