1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-12 22:00:30 +01:00
2021-11-30 08:00:51 +13:00

19 lines
349 B
C++

#pragma once
#include "esphome/core/component.h"
#include "esphome/components/switch/switch.h"
namespace esphome {
namespace restart {
class RestartSwitch : public switch_::Switch, public Component {
public:
void dump_config() override;
protected:
void write_state(bool state) override;
};
} // namespace restart
} // namespace esphome