Fix SSID must be ascii

This commit is contained in:
Otto Winter 2019-02-08 17:52:42 +01:00
parent a50eb3579a
commit 6a76a3642e
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -479,10 +479,7 @@ def domain_name(value):
def ssid(value):
if value is None:
raise vol.Invalid("SSID can not be None")
if not isinstance(value, str):
raise vol.Invalid("SSID must be a string. Did you wrap it in quotes?")
value = string_strict(value)
if not value:
raise vol.Invalid("SSID can't be empty.")
if len(value) > 32: