ESPHome 2025.11.0b4
Loading...
Searching...
No Matches
template_text_sensor.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome {
9namespace template_ {
10
12 public:
13 template<typename F> void set_template(F &&f) { this->f_.set(std::forward<F>(f)); }
14
15 void update() override;
16
17 float get_setup_priority() const override;
18
19 void dump_config() override;
20
21 protected:
23};
24
25} // namespace template_
26} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:437
Lightweight wrapper for template platform lambdas (stateless function pointers only).
void set(optional< T >(*f)(Args...))
Set the lambda function pointer.
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7