mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
set_retry internally does a std::make_shared<RetryArgs>() heap allocation on every invocation. Replace with set_interval + countdown counter which avoids this entirely. The original code used fixed-interval polling (no backoff), making set_interval a direct fit.