[sensor] Add optimistic option to heartbeat filter (#10993)

Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Petr Kejval
2025-10-21 09:17:07 -04:00
committed by GitHub
co-authored by Jonathan Swoboda J. Nick Koston
parent 87e9a7a1bd
commit 80265a6bd2
4 changed files with 33 additions and 3 deletions
@@ -101,6 +101,9 @@ sensor:
- filter_out: 10
- filter_out: !lambda return NAN;
- heartbeat: 5s
- heartbeat:
period: 5s
optimistic: true
- lambda: return x * (9.0/5.0) + 32.0;
- max:
window_size: 10