@@ -46,10 +46,10 @@ def __init__(
4646 ):
4747 """
4848 :param ESP_SPIcontrol esp: The ESP object we are using
49- :param str ssid: the SSID of the created Access Point . Must be less than 32 chars.
50- :param str password: the password of the created Access Point . Must be 8-63 chars.
51- :param str enterprise_ident: the ident when connecting to an enterprise Access Point .
52- :param str enterprise_user: the user when connecting to an enterprise Access Point .
49+ :param str ssid: the SSID of the access point . Must be less than 32 chars.
50+ :param str password: the password for the access point . Must be 8-63 chars.
51+ :param str enterprise_ident: the ident to use when connecting to an enterprise access point .
52+ :param str enterprise_user: the username to use when connecting to an enterprise access point .
5353 :param status_pixel: (Optional) The pixel device - A NeoPixel, DotStar,
5454 or RGB LED (default=None). The status LED, if given, turns red when
5555 attempting to connect to a Wi-Fi network or create an access point,
@@ -374,7 +374,7 @@ def __init__(
374374 """
375375 :param ESP_SPIcontrol esp: The ESP object we are using
376376 :param dict secrets: The WiFi secrets dict
377- The use of secrets.py to populate the secrets dict is depreciated
377+ The use of secrets.py to populate the secrets dict is deprecated
378378 in favor of using settings.toml.
379379 :param status_pixel: (Optional) The pixel device - A NeoPixel, DotStar,
380380 or RGB LED (default=None). The status LED, if given, turns red when
@@ -392,16 +392,12 @@ def __init__(
392392 "fetch values from settings.toml with `os.getenv()`."
393393 )
394394
395- ssid = secrets .get ("ssid" )
396- password = secrets .get ("secrets" , None )
397- enterprise_ident = secrets .get ("ent_ident" , "" )
398- enterprise_user = secrets .get ("ent_user" )
399395 super ().__init__ (
400396 esp = esp ,
401- ssid = ssid ,
402- password = password ,
403- enterprise_ident = enterprise_ident ,
404- enterprise_user = enterprise_user ,
397+ ssid = secrets . get ( " ssid" ) ,
398+ password = secrets . get ( "secrets" ) ,
399+ enterprise_ident = secrets . get ( "ent_ident" , "" ) ,
400+ enterprise_user = secrets . get ( "ent_user" ) ,
405401 status_pixel = status_pixel ,
406402 attempts = attempts ,
407403 connection_type = connection_type ,
0 commit comments