mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 00:05:43 +00:00
13 lines
238 B
C++
13 lines
238 B
C++
#include "bluetooth_switch.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2410 {
|
|
|
|
void BluetoothSwitch::write_state(bool state) {
|
|
this->publish_state(state);
|
|
this->parent_->set_bluetooth(state);
|
|
}
|
|
|
|
} // namespace ld2410
|
|
} // namespace esphome
|