17 lines
373 B
C++
17 lines
373 B
C++
#include "operating_mode_select.h"
|
|
#include "esphome/core/helpers.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2420 {
|
|
|
|
static const char *const TAG = "ld2420.select";
|
|
|
|
void LD2420Select::control(size_t index) {
|
|
this->publish_state(index);
|
|
this->parent_->set_operating_mode(this->option_at(index));
|
|
}
|
|
|
|
} // namespace ld2420
|
|
} // namespace esphome
|