diff --git a/esphome/core/scheduler.cpp b/esphome/core/scheduler.cpp index cb8f5c75b8..feaa41a97f 100644 --- a/esphome/core/scheduler.cpp +++ b/esphome/core/scheduler.cpp @@ -474,7 +474,7 @@ void HOT Scheduler::call(uint32_t now) { this->to_add_.push_back(std::move(item)); } - added_items |= this->to_add_.empty() == false; + added_items |= !this->to_add_.empty(); } }