Files
esphome/esphome
J. Nick Koston f5765f318c [sensor] Conditionally compile filter infrastructure with USE_SENSOR_FILTER
When no sensor filters are configured, the entire Filter class
hierarchy (filter.h/filter.cpp) is still compiled and linked into
the binary. This includes ~20 filter classes (sliding window, median,
quantile, exponential moving average, throttle, debounce, heartbeat,
delta, calibrate, clamp, NTC, streaming filters, etc.)

Add USE_SENSOR_FILTER define that is only emitted when at least one
sensor has filters configured. Wrap filter-related code behind this
define to eliminate dead code from the binary.
2026-02-22 17:25:40 -06:00
..
…
…
…
…
…
…
…