mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 08:46:01 +00:00
11 lines
212 B
C++
11 lines
212 B
C++
#include "bluetooth_switch.h"
|
|
|
|
namespace esphome::ld2412 {
|
|
|
|
void BluetoothSwitch::write_state(bool state) {
|
|
this->publish_state(state);
|
|
this->parent_->set_bluetooth(state);
|
|
}
|
|
|
|
} // namespace esphome::ld2412
|