ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
ld2420
select
operating_mode_select.cpp
Go to the documentation of this file.
1
#include "
operating_mode_select.h
"
2
#include "
esphome/core/helpers.h
"
3
#include "
esphome/core/log.h
"
4
5
namespace
esphome
{
6
namespace
ld2420 {
7
8
static
const
char
*
const
TAG =
"LD2420.select"
;
9
10
void
LD2420Select::control
(
const
std::string &value) {
11
this->
publish_state
(value);
12
this->
parent_
->set_operating_mode(value);
13
}
14
15
}
// namespace ld2420
16
}
// namespace esphome
esphome::Parented< LD2420Component >::parent_
LD2420Component * parent_
Definition
helpers.h:549
esphome::ld2420::LD2420Select::control
void control(const std::string &value) override
Definition
operating_mode_select.cpp:10
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition
select.cpp:9
helpers.h
log.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
operating_mode_select.h
Generated by
1.12.0