ESPHome  2024.11.1
operating_mode_select.cpp
Go to the documentation of this file.
2 #include "esphome/core/helpers.h"
3 #include "esphome/core/log.h"
4 
5 namespace esphome {
6 namespace ld2420 {
7 
8 static const char *const TAG = "LD2420.select";
9 
10 void LD2420Select::control(const std::string &value) {
11  this->publish_state(value);
12  this->parent_->set_operating_mode(value);
13 }
14 
15 } // namespace ld2420
16 } // namespace esphome
void control(const std::string &value) override
void publish_state(const std::string &state)
Definition: select.cpp:9
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7