ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
seeed_mr24hpc1
switch
underlyFuc_switch.cpp
Go to the documentation of this file.
1
#include "
underlyFuc_switch.h
"
2
3
namespace
esphome::seeed_mr24hpc1
{
4
5
void
UnderlyOpenFunctionSwitch::write_state
(
bool
state
) {
6
this->
publish_state
(state);
7
this->
parent_
->set_underlying_open_function(state);
8
}
9
10
}
// namespace esphome::seeed_mr24hpc1
esphome::Parented< MR24HPC1Component >::parent_
MR24HPC1Component * parent_
Definition
helpers.h:1872
esphome::seeed_mr24hpc1::UnderlyOpenFunctionSwitch::write_state
void write_state(bool state) override
Definition
underlyFuc_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:56
state
bool state
Definition
fan.h:2
esphome::seeed_mr24hpc1
Definition
custom_mode_end_button.cpp:3
underlyFuc_switch.h
Generated by
1.12.0