Files

79 lines
2.3 KiB
Plaintext

# serializer version: 1
# name: test_event_platform[event.mytopic-entry]
EntityRegistryEntrySnapshot({
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
<EventEntityCapabilityAttribute.EVENT_TYPES: 'event_types'>: list([
'Title: Hello',
]),
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'event',
'entity_category': None,
'entity_id': 'event.mytopic',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'object_id_base': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'platform': 'ntfy',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'subscribe',
'unique_id': '123456789_ABCDEF_subscribe',
'unit_of_measurement': None,
})
# ---
# name: test_event_platform[event.mytopic-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'actions': list([
]),
'attachment': None,
'click': 'https://example.com/',
'content_type': None,
<EntityStateAttribute.ENTITY_PICTURE: 'entity_picture'>: 'https://example.com/icon.png',
'event': <Event.MESSAGE: 'message'>,
<EventEntityStateAttribute.EVENT_TYPE: 'event_type'>: 'Title: Hello',
<EventEntityCapabilityAttribute.EVENT_TYPES: 'event_types'>: list([
'Title: Hello',
]),
'expires': HAFakeDatetime(2025, 3, 29, 5, 58, 46, tzinfo=datetime.timezone.utc),
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'mytopic',
'icon': 'https://example.com/icon.png',
'id': 'h6Y2hKA5sy0U',
'message': 'Hello',
'priority': 3,
'sequence_id': 'Mc3otamDNcpJ',
'tags': list([
'octopus',
]),
'time': HAFakeDatetime(2025, 3, 28, 17, 58, 46, tzinfo=datetime.timezone.utc),
'title': 'Title',
'topic': 'mytopic',
}),
'context': <ANY>,
'entity_id': 'event.mytopic',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '2025-09-03T22:00:00.000+00:00',
})
# ---