Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: J. Nick Koston <nick@koston.org>
19 lines
364 B
C++
19 lines
364 B
C++
#pragma once
|
|
|
|
#include "esphome/components/switch/switch.h"
|
|
#include "../ld2412.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2412 {
|
|
|
|
class EngineeringModeSwitch : public switch_::Switch, public Parented<LD2412Component> {
|
|
public:
|
|
EngineeringModeSwitch() = default;
|
|
|
|
protected:
|
|
void write_state(bool state) override;
|
|
};
|
|
|
|
} // namespace ld2412
|
|
} // namespace esphome
|