From 47bc5283a3a1cb2d214f656ba70dec544aa40bf6 Mon Sep 17 00:00:00 2001 From: philippelt Date: Mon, 4 Nov 2024 12:24:30 +0100 Subject: [PATCH] [Change] rawapi will return raw result if no "body" found #89 --- lnetatmo.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lnetatmo.py b/lnetatmo.py index 4be65c1f..11bfb6d4 100644 --- a/lnetatmo.py +++ b/lnetatmo.py @@ -987,7 +987,7 @@ def rawAPI(authData, url, parameters=None): if parameters is None: parameters = {} parameters["access_token"] = authData.accessToken resp = postRequest("rawAPI", fullUrl, parameters) - return resp["body"] if "body" in resp else None + return resp["body"] if "body" in resp else resp def filter_home_data(rawData, home): if home: diff --git a/setup.py b/setup.py index 894487df..478d52fb 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='lnetatmo', - version='4.1.4', + version='4.1.5', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -17,7 +17,7 @@ scripts=[], data_files=[], url='https://github.com/philippelt/netatmo-api-python', - download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.4.tar.gz', + download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.5.tar.gz', license='GPL V3', description='Simple API to access Netatmo weather station data from any python script.' )