mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
a3ccb656b25fae9df16791a90364f38bb24cfe36
Forward declaration fails when filter.h is included before application.h (incomplete type error). Instead, extract the throttle time check into a non-template helper in filter.cpp that accesses App directly. This keeps the same call overhead as the old ThrottleFilter (one function call) but the helper does the time check AND updates last_input, so the template new_value() body has no App dependency at all.
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
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
