ESPHome
2026.1.0-dev
Loading...
Searching...
No Matches
esphome
components
ld2450
switch
bluetooth_switch.cpp
Go to the documentation of this file.
1
#include "
bluetooth_switch.h
"
2
3
namespace
esphome::ld2450
{
4
5
void
BluetoothSwitch::write_state
(
bool
state
) {
6
this->
publish_state
(state);
7
this->
parent_
->set_bluetooth(state);
8
}
9
10
}
// namespace esphome::ld2450
esphome::Parented< LD2450Component >::parent_
LD2450Component * parent_
Definition
helpers.h:1113
esphome::ld2450::BluetoothSwitch::write_state
void write_state(bool state) override
Definition
bluetooth_switch.cpp:5
esphome::switch_::Switch::publish_state
void publish_state(bool state)
Publish a state to the front-end from the back-end.
Definition
switch.cpp:57
state
bool state
Definition
fan.h:0
bluetooth_switch.h
esphome::ld2450
Definition
factory_reset_button.cpp:3
Generated by
1.12.0