ESPHome  2024.12.2
quiet_mode.cpp
Go to the documentation of this file.
1 #include "quiet_mode.h"
2 
3 namespace esphome {
4 namespace haier {
5 
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
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void write_state(bool state) override
Definition: quiet_mode.cpp:6
void publish_state(bool state)
Publish a state to the front-end from the back-end.
Definition: switch.cpp:47
bool state
The current reported state of the binary sensor.
Definition: switch.h:53
bool state
Definition: fan.h:34