15 void setup()
override;
26 void control(
float value)
override;
ESPDEPRECATED("set_retry is deprecated and will be removed in 2026.8.0. Use set_timeout or set_interval instead.", "2026.2.0") void set_retry(const std uint32_t uint8_t std::function< RetryResult(uint8_t)> && f
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 numbers.
Trigger< float > set_trigger_
void set_restore_value(bool restore_value)
float get_setup_priority() const override
void set_optimistic(bool optimistic)
void control(float value) override
void dump_config() override
TemplateLambda< float > f_
ESPPreferenceObject pref_
Trigger< float > * get_set_trigger()
void set_initial_value(float initial_value)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.