mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 01:44:20 -07:00
f5765f318ca90cc4821ede2c51dd97313f564742
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.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
516 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
