mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 04:33:27 +02:00
f431c7402f
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Jos Suanet <jos@suanet.net>
19 lines
342 B
C++
19 lines
342 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/button/button.h"
|
|
|
|
namespace esphome {
|
|
namespace shutdown {
|
|
|
|
class ShutdownButton : public button::Button, public Component {
|
|
public:
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
void press_action() override;
|
|
};
|
|
|
|
} // namespace shutdown
|
|
} // namespace esphome
|