ESPHome
2026.5.1
Loading...
Searching...
No Matches
esphome
components
shutdown
button
shutdown_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/button/button.h
"
5
6
namespace
esphome::shutdown
{
7
8
class
ShutdownButton
:
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::shutdown
button.h
esphome::Component
Definition
component.h:145
esphome::button::Button
Base class for all buttons.
Definition
button.h:25
esphome::shutdown::ShutdownButton
Definition
shutdown_button.h:8
esphome::shutdown::ShutdownButton::dump_config
void dump_config() override
Definition
shutdown_button.cpp:17
esphome::shutdown::ShutdownButton::press_action
void press_action() override
Definition
shutdown_button.cpp:18
component.h
esphome::shutdown
Definition
shutdown_button.cpp:13
Generated by
1.12.0