15 void setup()
override;
26 void control(
const std::string &value)
override;
This class simplifies creating components that periodically check a state.
optional< std::function< optional< std::string >)> > f_
std::string initial_option_
void set_initial_option(const std::string &initial_option)
void control(const std::string &value) override
void set_restore_value(bool restore_value)
ESPPreferenceObject pref_
void set_template(std::function< optional< std::string >()> &&f)
Trigger< std::string > * get_set_trigger() const
void set_optimistic(bool optimistic)
float get_setup_priority() const override
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Base-class for all selects.
Implementation of SPI Controller mode.
void dump_config() override
Trigger< std::string > * set_trigger_