ESPHome
2024.11.1
esphome
esphome
components
at581x
switch
rf_switch.cpp
Go to the documentation of this file.
1
#include "
rf_switch.h
"
2
3
namespace
esphome
{
4
namespace
at581x {
5
6
void
RFSwitch::write_state
(
bool
state
) {
7
this->
publish_state
(state);
8
this->
parent_
->set_rf_mode(state);
9
}
10
11
}
// namespace at581x
12
}
// namespace esphome
esphome::Parented< AT581XComponent >::parent_
AT581XComponent * parent_
Definition:
helpers.h:533
rf_switch.h
esphome::at581x::RFSwitch::write_state
void write_state(bool state) override
Definition:
rf_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
state
bool state
Definition:
fan.h:34
Generated by
1.8.13