ESPHome 2025.5.0
Loading...
Searching...
No Matches
text_call.h
Go to the documentation of this file.
1#pragma once
2
4#include "text_traits.h"
5
6namespace esphome {
7namespace text {
8
9class Text;
10
11class TextCall {
12 public:
13 explicit TextCall(Text *parent) : parent_(parent) {}
14 void perform();
15
16 TextCall &set_value(const std::string &value);
17
18 protected:
19 Text *const parent_;
21 void validate_();
22};
23
24} // namespace text
25} // namespace esphome
TextCall & set_value(const std::string &value)
Definition text_call.cpp:10
TextCall(Text *parent)
Definition text_call.h:13
optional< std::string > value_
Definition text_call.h:20
Base-class for all text inputs.
Definition text.h:24
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7