ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
haier
switch
quiet_mode.cpp
Go to the documentation of this file.
1
#include "
quiet_mode.h
"
2
3
namespace
esphome
{
4
namespace
haier {
5
6
void
QuietModeSwitch::write_state
(
bool
state
) {
7
if
(this->
parent_
->get_quiet_mode_state() != state) {
8
this->
parent_
->set_quiet_mode_state(state);
9
}
10
this->
publish_state
(state);
11
}
12
13
}
// namespace haier
14
}
// namespace esphome
esphome::Parented< HonClimate >::parent_
HonClimate * parent_
Definition
helpers.h:549
esphome::haier::QuietModeSwitch::write_state
void write_state(bool state) override
Definition
quiet_mode.cpp:6
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:0
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
quiet_mode.h
Generated by
1.12.0