ESPHome
2024.11.1
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