Skip to content

Commit b539f43

Browse files
authored
Merge pull request #44 from brentru/patch-restclient-method
Patch Adafruit IO CircuitPython to match for latest breaking release
2 parents 808c5e2 + 32fd0b7 commit b539f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_pyportal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
import rtc
7070
import supervisor
7171

72-
from adafruit_io.adafruit_io import RESTClient, AdafruitIO_RequestError
72+
from adafruit_io.adafruit_io import IO_HTTP, AdafruitIO_RequestError
7373

7474
try:
7575
from secrets import secrets
@@ -691,7 +691,7 @@ def push_to_io(self, feed_key, data):
691691
raise KeyError("Adafruit IO secrets are kept in secrets.py, please add them there!\n\n")
692692

693693
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(self._esp, secrets, None)
694-
io_client = RESTClient(aio_username, aio_key, wifi)
694+
io_client = IO_HTTP(aio_username, aio_key, wifi)
695695

696696
while True:
697697
try:

0 commit comments

Comments
 (0)