

def assert_entry(self, entry, when=None, name=None, message=None, domain=None, entity_id=None):
    'Assert an entry is what is expected.'
    if when:
        self.assertEqual(when, entry.when)
    if name:
        self.assertEqual(name, entry.name)
    if message:
        self.assertEqual(message, entry.message)
    if domain:
        self.assertEqual(domain, entry.domain)
    if entity_id:
        self.assertEqual(entity_id, entity_id.entity_id)

dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_logbook.py TestComponentHistory.assert_entry/VarMisuse@113/145 `entry`->`entity_id`