16 void setup()
override;
27 void control(
size_t index)
override;
This class simplifies creating components that periodically check a state.
Lightweight wrapper for template platform lambdas (stateless function pointers only).
void set(optional< T >(*f)(Args...))
Set the lambda function pointer.
Base-class for all selects.
Trigger< std::string > * get_set_trigger() const
void set_restore_value(bool restore_value)
Trigger< std::string > * set_trigger_
void control(size_t index) override
float get_setup_priority() const override
void dump_config() override
ESPPreferenceObject pref_
void set_initial_option_index(size_t initial_option_index)
size_t initial_option_index_
TemplateLambda< std::string > f_
void set_optimistic(bool optimistic)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Providing packet encoding functions for exchanging data with a remote host.