ESPHome  2022.12.8
safe_mode_button.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace safe_mode {
9 
10 class SafeModeButton : public button::Button, public Component {
11  public:
12  void dump_config() override;
13  void set_ota(ota::OTAComponent *ota);
14 
15  protected:
17  void press_action() override;
18 };
19 
20 } // namespace safe_mode
21 } // namespace esphome
void set_ota(ota::OTAComponent *ota)
Base class for all buttons.
Definition: button.h:22
Definition: a4988.cpp:4
OTAComponent provides a simple way to integrate Over-the-Air updates into your app using ArduinoOTA...
Definition: ota_component.h:43