15 void setup()
override;
26 void control(
const std::string &value)
override;
This class simplifies creating components that periodically check a state.
Base-class for all selects.
Trigger< std::string > * get_set_trigger() const
void set_restore_value(bool restore_value)
Trigger< std::string > * set_trigger_
std::string initial_option_
float get_setup_priority() const override
void set_initial_option(const std::string &initial_option)
void dump_config() override
void control(const std::string &value) override
void set_template(std::function< optional< std::string >()> &&f)
ESPPreferenceObject pref_
optional< std::function< optional< 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.