Skip to content

Commit

Permalink
Update 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Mar 16, 2017
1 parent a0b3d50 commit ed3f73b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions pydroid_ipcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ def _request(self, path):
@asyncio.coroutine
def update(self):
"""Fetch the latest data from IP Webcam."""
self.status_data = yield from self._request('/status.json')
self.sensor_data = yield from self._request('/sensors.json')
status_data = yield from self._request('/status.json')

if status_data:
self.status_data = status_data

sensor_data = yield from self._request('/sensors.json')
if sensor_data:
self.sensor_data = sensor_data

@property
def current_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open('README.rst') as f:
long_description = f.read()

VERSION = "0.4"
VERSION = "0.5"

setup(
name='pydroid-ipcam',
Expand Down

0 comments on commit ed3f73b

Please sign in to comment.