ESPHome
2026.4.0-dev
Loading...
Searching...
No Matches
esphome
components
text
text_sensor
text_text_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
../text.h
"
4
#include "
esphome/core/component.h
"
5
#include "
esphome/components/text_sensor/text_sensor.h
"
6
7
namespace
esphome::text
{
8
9
class
TextTextSensor
:
public
text_sensor::TextSensor
,
public
Component
{
10
public
:
11
explicit
TextTextSensor
(
Text
*
source
) :
source_
(
source
) {}
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
15
protected
:
16
Text
*
source_
;
17
};
18
19
}
// namespace esphome::text
source
media_source::MediaSource * source
Definition
audio_file_media_source.cpp:14
esphome::Component
Definition
component.h:132
esphome::text::Text
Base-class for all text inputs.
Definition
text.h:21
esphome::text::TextTextSensor
Definition
text_text_sensor.h:9
esphome::text::TextTextSensor::dump_config
void dump_config() override
Definition
text_text_sensor.cpp:14
esphome::text::TextTextSensor::TextTextSensor
TextTextSensor(Text *source)
Definition
text_text_sensor.h:11
esphome::text::TextTextSensor::source_
Text * source_
Definition
text_text_sensor.h:16
esphome::text::TextTextSensor::setup
void setup() override
Definition
text_text_sensor.cpp:8
esphome::text_sensor::TextSensor
Definition
text_sensor.h:28
component.h
esphome::text
Definition
automation.h:7
text.h
text_sensor.h
Generated by
1.12.0