#pragma once #include "esphome/components/switch/switch.h" #include "../ld2450.h" namespace esphome { namespace ld2450 { class BluetoothSwitch : public switch_::Switch, public Parented { public: BluetoothSwitch() = default; protected: void write_state(bool state) override; }; } // namespace ld2450 } // namespace esphome