mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
set_retry: add retries remaining parameter to the provided function (#4251)
This commit is contained in:
@@ -16,7 +16,7 @@ class Scheduler {
|
||||
bool cancel_interval(Component *component, const std::string &name);
|
||||
|
||||
void set_retry(Component *component, const std::string &name, uint32_t initial_wait_time, uint8_t max_attempts,
|
||||
std::function<RetryResult()> func, float backoff_increase_factor = 1.0f);
|
||||
std::function<RetryResult(uint8_t)> func, float backoff_increase_factor = 1.0f);
|
||||
bool cancel_retry(Component *component, const std::string &name);
|
||||
|
||||
optional<uint32_t> next_schedule_in();
|
||||
|
||||
Reference in New Issue
Block a user