ESPHome 2025.11.0b4
Loading...
Searching...
No Matches
operating_mode_select.cpp
Go to the documentation of this file.
3#include "esphome/core/log.h"
4
5namespace esphome {
6namespace ld2420 {
7
8static const char *const TAG = "ld2420.select";
9
10void LD2420Select::control(size_t index) {
11 this->publish_state(index);
12 this->parent_->set_operating_mode(this->option_at(index));
13}
14
15} // namespace ld2420
16} // namespace esphome
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:87
void publish_state(const std::string &state)
Definition select.cpp:12
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7