mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 01:44:20 -07:00
79ad75b2c5476fb681c15bee909dca3d1521a292
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
516 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
