mirror of
https://github.com/esphome/esphome.git
synced 2026-02-22 17:35:36 -07:00
ifdef-binary-sensor-filter
When no binary sensor filters are configured, the entire Filter class hierarchy (filter.h/filter.cpp) is still compiled and linked into the binary. This includes delayed_on, delayed_off, delayed_on_off, invert, autorepeat, lambda, settle, and timeout filter classes. Add USE_BINARY_SENSOR_FILTER define that is only emitted when at least one binary 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
446 MiB
Languages
C++
64.2%
Python
35.5%
C
0.2%
