(self, **kwargs)
Retrieve events from server.
Retrieve events from server.
Retrieve events from server .
def get_events(self, **kwargs):
        """Retrieve events from server."""
        force = kwargs.pop("force", False)
        response = api.request_sync_events(self.blink, self.network_id, force=force)
        try:
            return response["event"]
        except (TypeError, KeyError):
            _LOGGER.error("Could not extract events: %s", response)
            return False
def get_events ( self , * * kwargs ) : force = kwargs . pop ( "force" , False ) response = api . request_sync_events ( self . blink , self . network_id , force = force ) try : return response [ "event" ] except ( TypeError , KeyError ) : _LOGGER . error ( "Could not extract events: %s" , response ) return False