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