ESPHome  2024.4.2
text_call.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "esphome/core/helpers.h"
4 #include "text_traits.h"
5 
6 namespace esphome {
7 namespace text {
8 
9 class Text;
10 
11 class 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(Text *parent)
Definition: text_call.h:13
TextCall & set_value(const std::string &value)
Definition: text_call.cpp:10
Text *const parent_
Definition: text_call.h:19
Base-class for all text inputs.
Definition: text.h:24
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
optional< std::string > value_
Definition: text_call.h:20