[multiple] Fix misc cosmetic bugs (error messages, types, defaults) (#15499)

This commit is contained in:
Jonathan Swoboda
2026-04-07 01:41:57 +00:00
committed by GitHub
parent e428cb5092
commit e62c78ad46
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ def validate_multi_click_timing(value):
new_state = v_.get(CONF_STATE, not state)
if new_state == state:
raise cv.Invalid(
f"Timings must have alternating state. Indices {i} and {i + 1} have the same state {state}"
f"Timings must have alternating state. Indices {i - 1} and {i} have the same state {state}"
)
if max_length is not None and max_length < min_length:
raise cv.Invalid(