Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Commit 119d9ef

Browse files
author
Joel Collins
committed
Updated as_event_description to new spec
1 parent 1431aa7 commit 119d9ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thingserver/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def as_event_description(self):
2626
Returns a dictionary describing the event.
2727
"""
2828
description = {
29-
self.name: {"timestamp": self.time,},
29+
{"event": self.name, "timestamp": self.time,}
3030
}
3131

3232
if self.data is not None:
33-
description[self.name]["data"] = self.data
33+
description["data"] = self.data
3434

3535
return description
3636

0 commit comments

Comments
 (0)