ESPHome
2026.5.1
Loading...
Searching...
No Matches
esphome
components
restart
button
restart_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/button/button.h
"
4
#include "
esphome/core/component.h
"
5
6
namespace
esphome::restart
{
7
8
class
RestartButton
final :
public
button::Button
,
public
Component
{
9
public
:
10
void
dump_config
()
override
;
11
12
protected
:
13
void
press_action
()
override
;
14
};
15
16
}
// namespace esphome::restart
button.h
esphome::Component
Definition
component.h:145
esphome::button::Button
Base class for all buttons.
Definition
button.h:25
esphome::restart::RestartButton
Definition
restart_button.h:8
esphome::restart::RestartButton::dump_config
void dump_config() override
Definition
restart_button.cpp:16
esphome::restart::RestartButton::press_action
void press_action() override
Definition
restart_button.cpp:10
component.h
esphome::restart
Definition
restart_button.cpp:6
Generated by
1.12.0