CallbackManager: std::function Replaced with Lightweight Callback
CallbackManager and LazyCallbackManager now use a lightweight 8-byte Callback struct instead of std::function (16 bytes). External components that define their own callback registration methods using std::function should update to templates for optimal performance.
This is a breaking change for external components in ESPHome 2026.4.0 and later.