Files
esphome-lsm6ds/esphome/components/ld2450/switch/bluetooth_switch.cpp
T
2025-02-20 03:16:08 -06:00

13 lines
238 B
C++

#include "bluetooth_switch.h"
namespace esphome {
namespace ld2450 {
void BluetoothSwitch::write_state(bool state) {
this->publish_state(state);
this->parent_->set_bluetooth(state);
}
} // namespace ld2450
} // namespace esphome