diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 169028be1a6..4937dbdd4e0 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -1833,7 +1833,7 @@ template class CallbackManager { template void add(F &&callback) { this->add_(CbType::create(std::forward(callback))); } /// Call all callbacks in this manager. - void call(Ts... args) { + inline void ESPHOME_ALWAYS_INLINE call(Ts... args) { for (auto *it = this->data_, *end = it + this->size_; it != end; ++it) { it->call(args...); }