mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 16:55:49 +00:00
13 lines
258 B
C++
13 lines
258 B
C++
#include "engineering_mode_switch.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2410 {
|
|
|
|
void EngineeringModeSwitch::write_state(bool state) {
|
|
this->publish_state(state);
|
|
this->parent_->set_engineering_mode(state);
|
|
}
|
|
|
|
} // namespace ld2410
|
|
} // namespace esphome
|