mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-25 07:08:30 +02:00
f46c499c4e
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
22 lines
499 B
C++
22 lines
499 B
C++
#pragma once
|
|
|
|
#include "esphome/components/esphome/ota/ota_esphome.h"
|
|
#include "esphome/components/switch/switch.h"
|
|
#include "esphome/core/component.h"
|
|
|
|
namespace esphome {
|
|
namespace safe_mode {
|
|
|
|
class SafeModeSwitch : public switch_::Switch, public Component {
|
|
public:
|
|
void dump_config() override;
|
|
void set_ota(esphome::ESPHomeOTAComponent *ota);
|
|
|
|
protected:
|
|
esphome::ESPHomeOTAComponent *ota_;
|
|
void write_state(bool state) override;
|
|
};
|
|
|
|
} // namespace safe_mode
|
|
} // namespace esphome
|