Skip to content

Commit 74b4c5c

Browse files
committed
fixed pylint issues
1 parent 7669478 commit 74b4c5c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adafruit_pyportal.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def __init__(self, *, url=None, headers=None, json_path=None, regexp_path=None,
256256

257257
if self._debug:
258258
print("My IP address is", self._esp.pretty_ip(self._esp.ip_address))
259-
259+
260260
# set the default background
261261
self.set_background(self._default_bg)
262262
board.DISPLAY.show(self.splash)
@@ -669,18 +669,18 @@ def io_push(self, feed, data):
669669
aio_key = secrets['aio_key']
670670
except KeyError:
671671
raise KeyError("\n\n")
672-
672+
673673
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(self._esp, secrets, None)
674-
io = RESTClient(aio_username, aio_key, wifi)
674+
io_connect = RESTClient(aio_username, aio_key, wifi)
675675

676676
try:
677-
feedID = io.get_feed(feed)
677+
feed_ID = io_connect.get_feed(feed)
678678
except AdafruitIO_RequestError:
679679
# If no feed exists, create one
680-
feedID = io.create_new_feed(feed)
680+
feed_ID = io_connect.create_new_feed(feed)
681+
682+
io_connect.send_data(feed_ID['key'], data)
681683

682-
io.send_data(feedID['key'], data)
683-
684684
def fetch(self, refresh_url=None):
685685
"""Fetch data from the url we initialized with, perfom any parsing,
686686
and display text or graphics. This function does pretty much everything

0 commit comments

Comments
 (0)