ESPHome
2025.12.3
Loading...
Searching...
No Matches
esphome
components
template
button
template_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/button/button.h
"
4
5
namespace
esphome::template_
{
6
7
class
TemplateButton
final :
public
button::Button
{
8
public
:
9
// Implements the abstract `press_action` but the `on_press` trigger already handles the press.
10
void
press_action
()
override
{};
11
};
12
13
}
// namespace esphome::template_
button.h
esphome::button::Button
Base class for all buttons.
Definition
button.h:25
esphome::template_::TemplateButton
Definition
template_button.h:7
esphome::template_::TemplateButton::press_action
void press_action() override
Definition
template_button.h:10
esphome::template_
Definition
template_alarm_control_panel.cpp:9
Generated by
1.12.0