ESPHome  2024.4.0
safe_mode_switch.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace safe_mode {
9 
10 class SafeModeSwitch : public switch_::Switch, public Component {
11  public:
12  void dump_config() override;
13  void set_ota(ota::OTAComponent *ota);
14 
15  protected:
17  void write_state(bool state) override;
18 };
19 
20 } // namespace safe_mode
21 } // namespace esphome
Base class for all switches.
Definition: switch.h:39
void write_state(bool state) override
void set_ota(ota::OTAComponent *ota)
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
bool state
The current reported state of the binary sensor.
Definition: switch.h:53
OTAComponent provides a simple way to integrate Over-the-Air updates into your app using ArduinoOTA...
Definition: ota_component.h:44