ESPHome  2024.11.1
template_text_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace template_ {
9 
11  public:
12  void set_template(std::function<optional<std::string>()> &&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 template_
25 } // namespace esphome
optional< std::function< optional< std::string >)> > f_
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void set_template(std::function< optional< std::string >()> &&f)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7