ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
beeper.cpp
Go to the documentation of this file.
1#include "beeper.h"
2
3namespace esphome::haier {
4
6 if (this->parent_->get_beeper_state() != state) {
7 this->parent_->set_beeper_state(state);
8 }
9 this->publish_state(state);
10}
11
12} // namespace esphome::haier
void write_state(bool state) override
Definition beeper.cpp:5
void publish_state(bool state)
Publish a state to the front-end from the back-end.
Definition switch.cpp:56
bool state
Definition fan.h:2