mirror of
https://github.com/esphome/esphome.git
synced 2026-09-21 20:18:43 +00:00
Convert all remaining component add_on_*_callback methods from std::function to templates so lambdas flow through without wrapping. This avoids a heap allocation regression where passing std::function through Callback::create would heap-allocate the std::function itself. Also add NOLINT annotations for clang-analyzer false positive on byte-wise copy in Callback::create.