ESPHome
2025.3.3
esphome
esphome
components
ld2450
switch
multi_target_switch.cpp
Go to the documentation of this file.
1
#include "
multi_target_switch.h
"
2
3
namespace
esphome
{
4
namespace
ld2450 {
5
6
void
MultiTargetSwitch::write_state
(
bool
state
) {
7
this->
publish_state
(state);
8
this->
parent_
->set_multi_target(state);
9
}
10
11
}
// namespace ld2450
12
}
// namespace esphome
state
bool state
Definition:
fan.h:34
multi_target_switch.h
esphome::Parented< LD2450Component >::parent_
LD2450Component * parent_
Definition:
helpers.h:549
esphome::ld2450::MultiTargetSwitch::write_state
void write_state(bool state) override
Definition:
multi_target_switch.cpp:6
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::switch_::Switch::publish_state
void publish_state(bool state)
Publish a state to the front-end from the back-end.
Definition:
switch.cpp:47
Generated by
1.8.13