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