Skip to content

Commit 5ac8da2

Browse files
author
brentru
committed
remove IO HTTP class changes
1 parent 6762cc7 commit 5ac8da2

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
@@ -427,7 +427,7 @@ class IO_HTTP:
427427
"""
428428

429429
def __init__(self, adafruit_io_username, adafruit_io_key, wifi_manager):
430-
self._username = adafruit_io_username
430+
self.username = adafruit_io_username
431431
self.key = adafruit_io_key
432432
wifi_type = str(type(wifi_manager))
433433
if "ESPSPI_WiFiManager" in wifi_type or "ESPAT_WiFiManager" in wifi_type:
@@ -477,7 +477,7 @@ def _compose_path(self, path):
477477
"""Composes a valid API request path.
478478
:param str path: Adafruit IO API URL path.
479479
"""
480-
return "https://io.adafruit.com/api/v2/{0}/{1}".format(self._username, path)
480+
return "https://io.adafruit.com/api/v2/{0}/{1}".format(self.username, path)
481481

482482
# HTTP Requests
483483
def _post(self, path, payload):

0 commit comments

Comments
 (0)