'Test if events of attribute changes are filtered.'

def test_exclude_attribute_changes(self):

    entity_id = 'switch.bla'
    entity_id2 = 'switch.blu'
    pointA = dt_util.utcnow()
    pointB = (pointA + timedelta(minutes=1))
    eventA = self.create_state_changed_event(pointA, entity_id, 10)
    eventB = self.create_state_changed_event(pointA, entity_id2, 20, last_changed=pointA, last_updated=pointB)
    entries = list(logbook.humanify((eventA, eventB)))
    self.assertEqual(1, len(entries))
    self.assert_entry(entries[0], pointA, 'bla', domain='switch', entity_id=entity_id)
