def ONLY_VALID(s, t, v):
    """Only events whose quality is VALID pass"""
    from taurus.core import AttrQuality
    if t == AttrQuality.ATTR_VALID:
        return s, t, v
    else:
        return None
