Skip to content

Commit

Permalink
fix error message for cv.matches_regex (#16175)
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate authored and balloob committed Aug 24, 2018
1 parent e91a152 commit 84365cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/helpers/config_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def validator(value: Any) -> str:

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
Expand Down

0 comments on commit 84365cd

Please sign in to comment.