ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
ld6002b_switch.cpp
Go to the documentation of this file.
1#include "ld6002b_switch.h"
2
3namespace esphome::ld6002b {
4
6 this->parent_->set_switch_state(this->type_, state);
7 this->publish_state(state);
8}
9
10} // namespace esphome::ld6002b
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:56
bool state
Definition fan.h:2