ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
copy
text_sensor
copy_text_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/text_sensor/text_sensor.h
"
5
6
namespace
esphome
{
7
namespace
copy {
8
9
class
CopyTextSensor
:
public
text_sensor::TextSensor
,
public
Component
{
10
public
:
11
void
set_source
(
text_sensor::TextSensor
*source) {
source_
= source; }
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
float
get_setup_priority
()
const override
{
return
setup_priority::DATA
; }
15
16
protected
:
17
text_sensor::TextSensor
*
source_
;
18
};
19
20
}
// namespace copy
21
}
// namespace esphome
esphome::copy::CopyTextSensor::get_setup_priority
float get_setup_priority() const override
Definition:
copy_text_sensor.h:14
esphome::setup_priority::DATA
const float DATA
For components that import data from directly connected sensors like DHT.
Definition:
component.cpp:19
esphome::copy::CopyTextSensor
Definition:
copy_text_sensor.h:9
esphome::copy::CopyTextSensor::source_
text_sensor::TextSensor * source_
Definition:
copy_text_sensor.h:17
esphome::Component
Definition:
component.h:68
esphome::text_sensor::TextSensor
Definition:
text_sensor.h:34
esphome::copy::CopyTextSensor::dump_config
void dump_config() override
Definition:
copy_text_sensor.cpp:15
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::copy::CopyTextSensor::set_source
void set_source(text_sensor::TextSensor *source)
Definition:
copy_text_sensor.h:11
component.h
text_sensor.h
esphome::copy::CopyTextSensor::setup
void setup() override
Definition:
copy_text_sensor.cpp:9
Generated by
1.8.13