diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index c9a27a2fab..95bf10abc3 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -176,6 +176,9 @@ template class CallbackManager { cb(args...); } + /// Call all callbacks in this manager. + void operator()(Ts... args) { call(args...); } + protected: std::vector> callbacks_; };