Skip to content

Commit 47bc528

Browse files
committed
[Change] rawapi will return raw result if no "body" found #89
1 parent 5fb0a81 commit 47bc528

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lnetatmo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ def rawAPI(authData, url, parameters=None):
987987
if parameters is None: parameters = {}
988988
parameters["access_token"] = authData.accessToken
989989
resp = postRequest("rawAPI", fullUrl, parameters)
990-
return resp["body"] if "body" in resp else None
990+
return resp["body"] if "body" in resp else resp
991991

992992
def filter_home_data(rawData, home):
993993
if home:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='lnetatmo',
7-
version='4.1.4',
7+
version='4.1.5',
88
classifiers=[
99
'Development Status :: 5 - Production/Stable',
1010
'Intended Audience :: Developers',
@@ -17,7 +17,7 @@
1717
scripts=[],
1818
data_files=[],
1919
url='https://github.com/philippelt/netatmo-api-python',
20-
download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.4.tar.gz',
20+
download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.5.tar.gz',
2121
license='GPL V3',
2222
description='Simple API to access Netatmo weather station data from any python script.'
2323
)

0 commit comments

Comments
 (0)