ESPHome
2025.7.1
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
{
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
15
protected
:
16
text_sensor::TextSensor
*
source_
;
17
};
18
19
}
// namespace copy
20
}
// namespace esphome
esphome::Component
Definition
component.h:71
esphome::copy::CopyTextSensor
Definition
copy_text_sensor.h:9
esphome::copy::CopyTextSensor::set_source
void set_source(text_sensor::TextSensor *source)
Definition
copy_text_sensor.h:11
esphome::copy::CopyTextSensor::source_
text_sensor::TextSensor * source_
Definition
copy_text_sensor.h:16
esphome::copy::CopyTextSensor::dump_config
void dump_config() override
Definition
copy_text_sensor.cpp:15
esphome::copy::CopyTextSensor::setup
void setup() override
Definition
copy_text_sensor.cpp:9
esphome::text_sensor::TextSensor
Definition
text_sensor.h:35
component.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
text_sensor.h
Generated by
1.12.0