mirror of
https://github.com/esphome/esphome.git
synced 2025-04-13 14:20:29 +01:00
15 lines
299 B
C++
15 lines
299 B
C++
#include "quiet_mode.h"
|
|
|
|
namespace esphome {
|
|
namespace haier {
|
|
|
|
void QuietModeSwitch::write_state(bool state) {
|
|
if (this->parent_->get_quiet_mode_state() != state) {
|
|
this->parent_->set_quiet_mode_state(state);
|
|
}
|
|
this->publish_state(state);
|
|
}
|
|
|
|
} // namespace haier
|
|
} // namespace esphome
|