ESPHome 2026.10.2
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
5#include "text.h"
6
7namespace esphome::text {
8
9class TextStateTrigger final : public Trigger<std::string> {
10 public:
11 explicit TextStateTrigger(Text *parent) {
12 parent->add_on_state_callback([this](const std::string &value) { this->trigger(value); });
13 }
14};
15
16} // namespace esphome::text
void trigger(const Ts &...x) ESPHOME_ALWAYS_INLINE
Definition automation.h:528
Base-class for all text inputs.
Definition text.h:21
void add_on_state_callback(F &&callback)
Definition text.h:33