mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 16:55:49 +00:00
13 lines
282 B
C++
13 lines
282 B
C++
#include "distance_resolution_select.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2410 {
|
|
|
|
void DistanceResolutionSelect::control(size_t index) {
|
|
this->publish_state(index);
|
|
this->parent_->set_distance_resolution(this->option_at(index));
|
|
}
|
|
|
|
} // namespace ld2410
|
|
} // namespace esphome
|