ESPHome 2025.5.0
Loading...
Searching...
No Matches
health_mode.cpp
Go to the documentation of this file.
1#include "health_mode.h"
2
3namespace esphome {
4namespace haier {
5
7 if (this->parent_->get_health_mode() != state) {
8 this->parent_->set_health_mode(state);
9 }
10 this->publish_state(state);
11}
12
13} // namespace haier
14} // namespace esphome
void write_state(bool state) override
void publish_state(bool state)
Publish a state to the front-end from the back-end.
Definition switch.cpp:47
bool state
Definition fan.h:0
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7