Skip to content

Commit 4ebc502

Browse files
committed
Fix import so debug works in ESPSPI_WiFiManager.
Made status_pixed optional to match docs.
1 parent 11c2bfb commit 4ebc502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_esp32spi/adafruit_esp32spi_wifimanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131

3232
# pylint: disable=no-name-in-module
3333

34-
import adafruit_esp32spi
34+
from adafruit_esp32spi import adafruit_esp32spi
3535
import adafruit_esp32spi.adafruit_esp32spi_requests as requests
3636

3737
class ESPSPI_WiFiManager:
3838
"""
3939
A class to help manage the Wifi connection
4040
"""
41-
def __init__(self, esp, secrets, status_pixel, attempts=2):
41+
def __init__(self, esp, secrets, status_pixel=None, attempts=2):
4242
"""
4343
:param ESP_SPIcontrol esp: The ESP object we are using
4444
:param dict secrets: The WiFi and Adafruit IO secrets dict (See examples)

0 commit comments

Comments
 (0)