@@ -46,10 +46,10 @@ def __init__(
46
46
):
47
47
"""
48
48
: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 .
53
53
:param status_pixel: (Optional) The pixel device - A NeoPixel, DotStar,
54
54
or RGB LED (default=None). The status LED, if given, turns red when
55
55
attempting to connect to a Wi-Fi network or create an access point,
@@ -374,7 +374,7 @@ def __init__(
374
374
"""
375
375
:param ESP_SPIcontrol esp: The ESP object we are using
376
376
: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
378
378
in favor of using settings.toml.
379
379
:param status_pixel: (Optional) The pixel device - A NeoPixel, DotStar,
380
380
or RGB LED (default=None). The status LED, if given, turns red when
@@ -392,16 +392,12 @@ def __init__(
392
392
"fetch values from settings.toml with `os.getenv()`."
393
393
)
394
394
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" )
399
395
super ().__init__ (
400
396
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" ) ,
405
401
status_pixel = status_pixel ,
406
402
attempts = attempts ,
407
403
connection_type = connection_type ,
0 commit comments