Skip to content

Commit 5fb0a81

Browse files
committed
[Fix] Quick fix for #87, Camera always return jpeg, removing test
1 parent 216fb29 commit 5fb0a81

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lnetatmo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from os import getenv
1919
from os.path import expanduser
2020
import json, time
21-
import imghdr
2221
import logging
2322

2423
# Just in case method could change
@@ -738,8 +737,7 @@ def getCameraPicture(self, image_id, key):
738737
"key" : key
739738
}
740739
resp = postRequest("Camera", _GETCAMERAPICTURE_REQ, postParams)
741-
image_type = imghdr.what('NONE.FILE',resp)
742-
return resp, image_type
740+
return resp, "jpeg"
743741

744742
def getProfileImage(self, name):
745743
"""

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.3',
7+
version='4.1.4',
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.3.tar.gz',
20+
download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.4.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)