diff --git a/lnetatmo.py b/lnetatmo.py index 9916d58c..4be65c1f 100644 --- a/lnetatmo.py +++ b/lnetatmo.py @@ -18,7 +18,6 @@ from os import getenv from os.path import expanduser import json, time -import imghdr import logging # Just in case method could change @@ -738,8 +737,7 @@ def getCameraPicture(self, image_id, key): "key" : key } resp = postRequest("Camera", _GETCAMERAPICTURE_REQ, postParams) - image_type = imghdr.what('NONE.FILE',resp) - return resp, image_type + return resp, "jpeg" def getProfileImage(self, name): """ diff --git a/setup.py b/setup.py index 9e537b55..894487df 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='lnetatmo', - version='4.1.3', + version='4.1.4', 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.3.tar.gz', + download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.4.tar.gz', license='GPL V3', description='Simple API to access Netatmo weather station data from any python script.' )