Avoid creating unneeded Context and Event objects when firing events (#113798)
* Avoid creating unneeded Context and Event objects when firing events * Add test --------- Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
638020f168
commit
d31124d5d4
19 changed files with 257 additions and 128 deletions
|
@ -321,7 +321,7 @@ class Events(Base):
|
|||
EventOrigin(self.origin)
|
||||
if self.origin
|
||||
else EVENT_ORIGIN_ORDER[self.origin_idx or 0],
|
||||
dt_util.utc_from_timestamp(self.time_fired_ts or 0),
|
||||
self.time_fired_ts or 0,
|
||||
context=context,
|
||||
)
|
||||
except JSON_DECODE_EXCEPTIONS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue