ESPHome
2024.12.2
esphome
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
{
4
namespace
ld2410 {
5
6
void
DistanceResolutionSelect::control
(
const
std::string &value) {
7
this->
publish_state
(value);
8
this->
parent_
->set_distance_resolution(
state
);
9
}
10
11
}
// namespace ld2410
12
}
// namespace esphome
esphome::ld2410::DistanceResolutionSelect::control
void control(const std::string &value) override
Definition:
distance_resolution_select.cpp:6
distance_resolution_select.h
esphome::Parented< LD2410Component >::parent_
LD2410Component * parent_
Definition:
helpers.h:541
esphome::select::Select::state
std::string state
Definition:
select.h:33
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition:
select.cpp:9
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
Generated by
1.8.13