[sensor] Clamp filter handles non-finite values better (#13457)

This commit is contained in:
Clyde Stubbs
2026-01-23 09:34:29 +11:00
committed by GitHub
parent effbcece49
commit 3dbebb728d
2 changed files with 10 additions and 13 deletions

View File

@@ -117,6 +117,7 @@ sensor:
- 10.0 -> 12.1
- 13.0 -> 14.0
- clamp:
# Infinity and NaN will be clamped (NaN -> min_value, +Infinity -> max_value, -Infinity -> min_value)
max_value: 10.0
min_value: -10.0
- debounce: 0.1s