fix error message for cv.matches_regex (#16175)

This commit is contained in:
Nate Clark authored and Paulus Schoutsen committed 2018-08-25 11:15:53 +02:00
1 parent cf8bd92d4d
commit 4cb9ac72b4
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ def matches_regex(regex):
if not regex.match(value):
raise vol.Invalid('value {} does not match regular expression {}'
.format(regex.pattern, value))
.format(value, regex.pattern))
return value
return validator