mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-21 21:43:26 +02:00
f431c7402f
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Jos Suanet <jos@suanet.net>
19 lines
352 B
C++
19 lines
352 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/switch/switch.h"
|
|
|
|
namespace esphome {
|
|
namespace shutdown {
|
|
|
|
class ShutdownSwitch : public switch_::Switch, public Component {
|
|
public:
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
void write_state(bool state) override;
|
|
};
|
|
|
|
} // namespace shutdown
|
|
} // namespace esphome
|