mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 06:58:11 +01:00
Fix SSID must be ascii
This commit is contained in:
parent
a50eb3579a
commit
6a76a3642e
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue