Skip to content

Commit 1f9ae49

Browse files
author
brentru
committed
add in ESPAT_Wifimanager check
1 parent d638130 commit 1f9ae49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_io/adafruit_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ def __init__(self, adafruit_io_username, adafruit_io_key, wifi_manager):
5252
Creates an instance of the Adafruit IO REST Client.
5353
:param str adafruit_io_username: Adafruit IO Username
5454
:param str adafruit_io_key: Adafruit IO Key
55-
:param wifi_manager: WiFiManager object from adafruit_esp32spi_wifimanager
55+
:param wifi_manager: WiFiManager object from ESPSPI_WiFiManager or ESPAT_WifiManager
5656
"""
5757
self.username = adafruit_io_username
5858
self.key = adafruit_io_key
5959
wifi_type = str(type(wifi_manager))
60-
if ('ESPSPI_WiFiManager' in wifi_type):
60+
if ('ESPSPI_WiFiManager' in wifi_type or 'ESPAT_WifiManager' in wifi_type):
6161
self.wifi = wifi_manager
6262
else:
6363
raise TypeError("This library requires a WiFiManager object.")

0 commit comments

Comments
 (0)