ESPHome
2025.12.3
Loading...
Searching...
No Matches
esphome
components
ld2410
select
distance_resolution_select.cpp
Go to the documentation of this file.
1
#include "
distance_resolution_select.h
"
2
3
namespace
esphome::ld2410
{
4
5
void
DistanceResolutionSelect::control
(
size_t
index) {
6
this->
publish_state
(index);
7
this->
parent_
->set_distance_resolution(this->
option_at
(index));
8
}
9
10
}
// namespace esphome::ld2410
esphome::Parented< LD2410Component >::parent_
LD2410Component * parent_
Definition
helpers.h:943
esphome::ld2410::DistanceResolutionSelect::control
void control(size_t index) override
Definition
distance_resolution_select.cpp:5
esphome::select::Select::option_at
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
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition
select.cpp:11
distance_resolution_select.h
esphome::ld2410
Definition
automation.h:7
Generated by
1.12.0