Skip to content

Commit 88cb011

Browse files
author
brentru
committed
remove text kwarg from GET since we're only expecting JSON responses now
1 parent a906b59 commit 88cb011

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_io/adafruit_io.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,15 @@ def _post(self, path, payload):
120120
self._handle_error(response)
121121
return response.json()
122122

123-
def _get(self, path, return_text=False):
123+
def _get(self, path):
124124
"""
125125
GET data from Adafruit IO
126126
:param str path: Formatted Adafruit IO URL from _compose_path
127-
:param bool return_text: Returns text instead of json
128127
"""
129128
response = self.wifi.get(
130129
path,
131130
headers=self._create_headers(self._aio_headers[1]))
132131
self._handle_error(response)
133-
if return_text:
134-
return response.text
135132
return response.json()
136133

137134
def _delete(self, path):

0 commit comments

Comments
 (0)