Skip to content

Commit

Permalink
[Fix] Quick fix for #87, Camera always return jpeg, removing test
Browse files Browse the repository at this point in the history
  • Loading branch information
philippelt committed Oct 24, 2024
1 parent 216fb29 commit 5fb0a81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lnetatmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
"""
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='lnetatmo',
version='4.1.3',
version='4.1.4',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand All @@ -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.'
)

0 comments on commit 5fb0a81

Please sign in to comment.