ESPHome
2025.9.0-dev
Loading...
Searching...
No Matches
esphome
components
copy
select
copy_select.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/select/select.h
"
5
6
namespace
esphome
{
7
namespace
copy {
8
9
class
CopySelect
:
public
select::Select
,
public
Component
{
10
public
:
11
void
set_source
(
select::Select
*source) {
source_
= source; }
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
15
protected
:
16
void
control
(
const
std::string &value)
override
;
17
18
select::Select
*
source_
;
19
};
20
21
}
// namespace copy
22
}
// namespace esphome
esphome::Component
Definition
component.h:71
esphome::copy::CopySelect
Definition
copy_select.h:9
esphome::copy::CopySelect::control
void control(const std::string &value) override
Definition
copy_select.cpp:20
esphome::copy::CopySelect::source_
select::Select * source_
Definition
copy_select.h:18
esphome::copy::CopySelect::setup
void setup() override
Definition
copy_select.cpp:9
esphome::copy::CopySelect::dump_config
void dump_config() override
Definition
copy_select.cpp:18
esphome::copy::CopySelect::set_source
void set_source(select::Select *source)
Definition
copy_select.h:11
esphome::select::Select
Base-class for all selects.
Definition
select.h:31
component.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
select.h
Generated by
1.12.0