ESPHome 2026.5.1
Loading...
Searching...
No Matches
factory_reset_switch.h
Go to the documentation of this file.
1#pragma once
2
6
8
10 public:
11 void dump_config() override;
12#ifdef USE_OPENTHREAD
13 static void factory_reset_callback();
14#endif
15
16 protected:
17 void write_state(bool state) override;
18};
19
20} // namespace esphome::factory_reset
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55