'Check if the update method is locked.'

def is_update_locked(self):

    if (self.last_lock_time is None):
        return False
    if ((time.time() - self.last_lock_time) >= MIN_TIME_TO_LOCK_UPDATE):
        self.last_lock_time = None
        return False
    return True
