ESPHome 2025.5.0
Loading...
Searching...
No Matches
copy_text.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace copy {
8
9class CopyText : public text::Text, public Component {
10 public:
11 void set_source(text::Text *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 void control(const std::string &value) override;
18
20};
21
22} // namespace copy
23} // namespace esphome
text::Text * source_
Definition copy_text.h:19
void setup() override
Definition copy_text.cpp:9
void dump_config() override
Definition copy_text.cpp:16
void set_source(text::Text *source)
Definition copy_text.h:11
float get_setup_priority() const override
Definition copy_text.h:14
void control(const std::string &value) override
Definition copy_text.cpp:18
Base-class for all text inputs.
Definition text.h:24
const float DATA
For components that import data from directly connected sensors like DHT.
Definition component.cpp:19
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7