

def test_process_custom_logbook_entries(self):
    'Test if custom log book entries get added as an entry.'
    name = 'Nice name'
    message = 'has a custom entry'
    entity_id = 'sun.sun'
    entries = list(logbook.humanify((ha.Event(logbook.EVENT_LOGBOOK_ENTRY, {
        logbook.ATTR_NAME: name,
        logbook.ATTR_MESSAGE: name,
        logbook.ATTR_ENTITY_ID: entity_id,
    }),)))
    self.assertEqual(1, len(entries))
    self.assert_entry(entries[0], name=name, message=message, domain='sun', entity_id=entity_id)

dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_logbook.py TestComponentHistory.test_process_custom_logbook_entries/VarMisuse@54/112 `message`->`name`