cogito/esphome_dev/esphome/components/restart/button/restart_button.h

18 lines
339 B
C++

#pragma once
#include "esphome/components/button/button.h"
#include "esphome/core/component.h"
namespace esphome {
namespace restart {
class RestartButton : public button::Button, public Component {
public:
void dump_config() override;
protected:
void press_action() override;
};
} // namespace restart
} // namespace esphome