diff --git a/esphome/core/scheduler.cpp b/esphome/core/scheduler.cpp index 8077d3b81b..3616bbc70a 100644 --- a/esphome/core/scheduler.cpp +++ b/esphome/core/scheduler.cpp @@ -759,7 +759,7 @@ void Scheduler::recycle_item_(std::unique_ptr item) { if (!item) return; - static constexpr size_t MAX_POOL_SIZE = 16; + static constexpr size_t MAX_POOL_SIZE = 8; if (this->scheduler_item_pool_.size() < MAX_POOL_SIZE) { // Clear callback to release captured resources item->callback = nullptr;