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>
22 lines
461 B
C++
22 lines
461 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/ota/ota_component.h"
|
|
#include "esphome/components/button/button.h"
|
|
|
|
namespace esphome {
|
|
namespace safe_mode {
|
|
|
|
class SafeModeButton : public button::Button, public Component {
|
|
public:
|
|
void dump_config() override;
|
|
void set_ota(ota::OTAComponent *ota);
|
|
|
|
protected:
|
|
ota::OTAComponent *ota_;
|
|
void press_action() override;
|
|
};
|
|
|
|
} // namespace safe_mode
|
|
} // namespace esphome
|