mirror of
https://github.com/esphome/esphome.git
synced 2025-01-04 20:01:43 +01:00
18 lines
352 B
C++
18 lines
352 B
C++
#pragma once
|
|
|
|
#include "esphome/components/switch/switch.h"
|
|
#include "../ld2410.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2410 {
|
|
|
|
class BluetoothSwitch : public switch_::Switch, public Parented<LD2410Component> {
|
|
public:
|
|
BluetoothSwitch() = default;
|
|
|
|
protected:
|
|
void write_state(bool state) override;
|
|
};
|
|
|
|
} // namespace ld2410
|
|
} // namespace esphome
|