ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
copy
text
copy_text.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/text/text.h
"
5
6
namespace
esphome::copy
{
7
8
class
CopyText
:
public
text::Text
,
public
Component
{
9
public
:
10
void
set_source
(
text::Text
*source) {
source_
= source; }
11
void
setup
()
override
;
12
void
dump_config
()
override
;
13
14
protected
:
15
void
control
(
const
std::string &value)
override
;
16
17
text::Text
*
source_
;
18
};
19
20
}
// namespace esphome::copy
esphome::Component
Definition
component.h:145
esphome::copy::CopyText
Definition
copy_text.h:8
esphome::copy::CopyText::source_
text::Text * source_
Definition
copy_text.h:17
esphome::copy::CopyText::setup
void setup() override
Definition
copy_text.cpp:8
esphome::copy::CopyText::dump_config
void dump_config() override
Definition
copy_text.cpp:15
esphome::copy::CopyText::set_source
void set_source(text::Text *source)
Definition
copy_text.h:10
esphome::copy::CopyText::control
void control(const std::string &value) override
Definition
copy_text.cpp:17
esphome::text::Text
Base-class for all text inputs.
Definition
text.h:21
component.h
esphome::copy
Definition
copy_binary_sensor.cpp:4
text.h
Generated by
1.12.0