mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Fix SSID must be ascii
This commit is contained in:
parent
5c88654b49
commit
653c991c68
@ -479,10 +479,7 @@ def domain_name(value):
|
|||||||
|
|
||||||
|
|
||||||
def ssid(value):
|
def ssid(value):
|
||||||
if value is None:
|
value = string_strict(value)
|
||||||
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?")
|
|
||||||
if not value:
|
if not value:
|
||||||
raise vol.Invalid("SSID can't be empty.")
|
raise vol.Invalid("SSID can't be empty.")
|
||||||
if len(value) > 32:
|
if len(value) > 32:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user