(self, camera_id, **kwargs)
Retrieve camera information.
Retrieve camera information.
Retrieve camera information .
def get_camera_info(self, camera_id, **kwargs):
        """Retrieve camera information."""
        owl = kwargs.get("owl_info", None)
        if owl is not None:
            return owl
        lotus = kwargs.get("lotus_info", None)
        if lotus is not None:
            return lotus
        response = api.request_camera_info(self.blink, self.network_id, camera_id)
        try:
            return response["camera"][0]
        except (TypeError, KeyError):
            _LOGGER.error("Could not extract camera info: %s", response)
            return {}
def get_camera_info ( self , camera_id , * * kwargs ) : owl = kwargs . get ( "owl_info" , None ) if owl is not None : return owl lotus = kwargs . get ( "lotus_info" , None ) if lotus is not None : return lotus response = api . request_camera_info ( self . blink , self . network_id , camera_id ) try : return response [ "camera" ] [ 0 ] except ( TypeError , KeyError ) : _LOGGER . error ( "Could not extract camera info: %s" , response ) return { }