ESPHome 2025.12.3
Loading...
Searching...
No Matches
operating_mode_select.cpp
Go to the documentation of this file.
3#include "esphome/core/log.h"
4
5namespace esphome::ld2420 {
6
7static const char *const TAG = "ld2420.select";
8
9void LD2420Select::control(size_t index) {
10 this->publish_state(index);
11 this->parent_->set_operating_mode(this->option_at(index));
12}
13
14} // namespace esphome::ld2420
void control(size_t index) override
const char * option_at(size_t index) const
Return the option value at the provided index offset (as const char* from flash).
Definition select.cpp:84
void publish_state(const std::string &state)
Definition select.cpp:11