ESPHome  2024.12.2
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_safe_mode(SafeModeComponent *safe_mode_component);
14 
15  protected:
17  void press_action() override;
18 };
19 
20 } // namespace safe_mode
21 } // namespace esphome
Base class for all buttons.
Definition: button.h:29
void set_safe_mode(SafeModeComponent *safe_mode_component)
SafeModeComponent provides a safe way to recover from repeated boot failures.
Definition: safe_mode.h:12
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
SafeModeComponent * safe_mode_component_