ESPHome
2026.5.0
Loading...
Searching...
No Matches
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::copy
{
7
8
class
CopyTextSensor
:
public
text_sensor::TextSensor
,
public
Component
{
9
public
:
10
void
set_source
(
text_sensor::TextSensor
*source) {
source_
= source; }
11
void
setup
()
override
;
12
void
dump_config
()
override
;
13
14
protected
:
15
text_sensor::TextSensor
*
source_
;
16
};
17
18
}
// namespace esphome::copy
esphome::Component
Definition
component.h:145
esphome::copy::CopyTextSensor
Definition
copy_text_sensor.h:8
esphome::copy::CopyTextSensor::set_source
void set_source(text_sensor::TextSensor *source)
Definition
copy_text_sensor.h:10
esphome::copy::CopyTextSensor::source_
text_sensor::TextSensor * source_
Definition
copy_text_sensor.h:15
esphome::copy::CopyTextSensor::dump_config
void dump_config() override
Definition
copy_text_sensor.cpp:14
esphome::copy::CopyTextSensor::setup
void setup() override
Definition
copy_text_sensor.cpp:8
esphome::text_sensor::TextSensor
Definition
text_sensor.h:28
component.h
esphome::copy
Definition
copy_binary_sensor.cpp:4
text_sensor.h
Generated by
1.12.0