ESPHome 2026.5.1
Loading...
Searching...
No Matches
restart_switch.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::restart {
7
8class RestartSwitch : public switch_::Switch, public Component {
9 public:
10 void dump_config() override;
11
12 protected:
13 void write_state(bool state) override;
14};
15
16} // namespace esphome::restart
void write_state(bool state) override
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55