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:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user