mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00: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:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							1d0fb59208
						
					
				
				
					commit
					7fd08fb816
				
			| @@ -39,8 +39,8 @@ def validate(config): | |||||||
|         ) |         ) | ||||||
|  |  | ||||||
|     with cv.prepend_path(CONF_MIN_LENGTH): |     with cv.prepend_path(CONF_MIN_LENGTH): | ||||||
|         if config[CONF_MIN_LENGTH] >= config[CONF_MAX_LENGTH]: |         if config[CONF_MIN_LENGTH] > config[CONF_MAX_LENGTH]: | ||||||
|             raise cv.Invalid("min_length must be less than max_length") |             raise cv.Invalid("min_length must be less than or equal to max_length") | ||||||
|     return config |     return config | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user