Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #66 from tchellomello/fix_lint
Browse files Browse the repository at this point in the history
Function should must return value (inconsistent-return-statements)
  • Loading branch information
tchellomello authored Dec 29, 2017
2 parents b40d3d2 + 25d2f19 commit 9d42c74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyarlo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def lookup_camera_by_id(self, device_id):
lambda cam: cam.device_id == device_id, self.cameras))[0]
if camera:
return camera
return None

def refresh_attributes(self, name):
"""Refresh attributes from a given Arlo object."""
Expand All @@ -206,6 +207,7 @@ def refresh_attributes(self, name):
for device in data:
if device.get('deviceName') == name:
return device
return None

@property
def unseen_videos_reset(self):
Expand Down

0 comments on commit 9d42c74

Please sign in to comment.