mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
deprecate_set_retry
set_retry does a std::make_shared<RetryArgs>() heap allocation on every invocation. No core component needs this pattern - all callers have been migrated to set_timeout or set_interval in prior PRs. The feature wastes flash and RAM on every firmware for a pattern that set_interval covers better, and the hidden heap allocation is a footgun for component authors. Deprecated in 2026.2.0, removal in 2026.8.0. Depends on: - #13841 [lps22] Replace set_retry with set_interval - #13842 [ms8607] Replace set_retry with set_timeout chain - #13843 [speaker] Replace set_retry with set_interval - #13844 [esp32_hosted] Replace set_retry with set_interval
Description
Languages
C++
64.3%
Python
35.4%
C
0.2%
