ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
template_text_sensor.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome::template_ {
9
11 public:
12 template<typename F> void set_template(F &&f) { this->f_.set(std::forward<F>(f)); }
13
14 void update() override;
15
16 float get_setup_priority() const override;
17
18 void dump_config() override;
19
20 protected:
22};
23
24} // namespace esphome::template_
ESPDEPRECATED("set_retry is deprecated and will be removed in 2026.8.0. Use set_timeout or set_interval instead.", "2026.2.0") void set_retry(const std uint32_t uint8_t std::function< RetryResult(uint8_t)> && f
Definition component.h:387
This class simplifies creating components that periodically check a state.
Definition component.h:527
Lightweight wrapper for template platform lambdas (stateless function pointers only).
void set(optional< T >(*f)(Args...))
Set the lambda function pointer.