ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
template_button.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace esphome::template_ {
6
7class TemplateButton final : public button::Button {
8 public:
9 // User provided, not "= default": `new(p) TemplateButton()` would zero-fill .bss that is already zero.
11
12 // Implements the abstract `press_action` but the `on_press` trigger already handles the press.
13 void press_action() override {};
14};
15
16} // namespace esphome::template_
Base class for all buttons.
Definition button.h:25