From 25d2f199da9ab967cd3a02056d6770224dde2d5b Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Fri, 29 Dec 2017 02:59:14 -0500 Subject: [PATCH] Function should must return value (inconsistent-return-statements) --- pyarlo/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyarlo/__init__.py b/pyarlo/__init__.py index 639fe6f..d7d1cc7 100644 --- a/pyarlo/__init__.py +++ b/pyarlo/__init__.py @@ -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.""" @@ -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):