mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Better error message
This commit is contained in:
		| @@ -78,8 +78,8 @@ def string_strict(value): | |||||||
|     """Strictly only allow strings.""" |     """Strictly only allow strings.""" | ||||||
|     if isinstance(value, (str, unicode)): |     if isinstance(value, (str, unicode)): | ||||||
|         return value |         return value | ||||||
|     raise vol.Invalid("Must be string, did you forget putting quotes " |     raise vol.Invalid("Must be string, got {}. did you forget putting quotes " | ||||||
|                       "around the value?") |                       "around the value?".format(type(value))) | ||||||
|  |  | ||||||
|  |  | ||||||
| def icon(value): | def icon(value): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user