mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Fix template text component length check (#5881)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
parent
1d0fb59208
commit
7fd08fb816
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ def validate(config):
|
|||
)
|
||||
|
||||
with cv.prepend_path(CONF_MIN_LENGTH):
|
||||
if config[CONF_MIN_LENGTH] >= config[CONF_MAX_LENGTH]:
|
||||
raise cv.Invalid("min_length must be less than max_length")
|
||||
if config[CONF_MIN_LENGTH] > config[CONF_MAX_LENGTH]:
|
||||
raise cv.Invalid("min_length must be less than or equal to max_length")
|
||||
return config
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue