[core] Replace std::function with lightweight Callback in CallbackManager (#14853)

This commit is contained in:
J. Nick Koston
2026-03-18 18:41:05 -10:00
committed by GitHub
parent fdd5956c1e
commit 8fe36cde23
85 changed files with 319 additions and 385 deletions
-1
View File
@@ -20,6 +20,5 @@ void Button::press() {
this->press_action();
this->press_callback_.call();
}
void Button::add_on_press_callback(std::function<void()> &&callback) { this->press_callback_.add(std::move(callback)); }
} // namespace esphome::button