1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

Feature/fix unit tests (#1129)

This commit is contained in:
Peter Kuehne
2020-07-14 12:11:58 +01:00
committed by GitHub
parent c8a4eb426c
commit 2012c769f6
4 changed files with 56 additions and 52 deletions

View File

@@ -104,7 +104,7 @@ def alphanumeric(value):
raise Invalid("string value is None")
value = str(value)
if not value.isalnum():
raise Invalid("string value is not alphanumeric")
raise Invalid(f"{value} is not alphanumeric")
return value