Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Marcus Better <marcus@better.se> Co-authored-by: Trevor Schirmer <24777085+TrevorSchirmer@users.noreply.github.com> Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
19 lines
352 B
C++
19 lines
352 B
C++
#pragma once
|
|
|
|
#include "esphome/components/switch/switch.h"
|
|
#include "../ld2450.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2450 {
|
|
|
|
class BluetoothSwitch : public switch_::Switch, public Parented<LD2450Component> {
|
|
public:
|
|
BluetoothSwitch() = default;
|
|
|
|
protected:
|
|
void write_state(bool state) override;
|
|
};
|
|
|
|
} // namespace ld2450
|
|
} // namespace esphome
|