This reverts commit 2365e2e8cf.
This commit is contained in:
1 parent
ceb3985a99
commit
7d8da47309
7 files changed
+6
-14
No files matched your search
@@ -3,7 +3,6 @@ from datetime import datetime
|
||||
import json
|
||||
import logging
|
||||
|
||||
import orjson
|
||||
from sqlalchemy import (
|
||||
Boolean,
|
||||
Column,
|
||||
@@ -64,7 +63,7 @@ class Events(Base): # type: ignore
|
||||
try:
|
||||
return Event(
|
||||
self.event_type,
|
||||
orjson.loads(self.event_data),
|
||||
json.loads(self.event_data),
|
||||
EventOrigin(self.origin),
|
||||
_process_timestamp(self.time_fired),
|
||||
context=context,
|
||||
@@ -134,7 +133,7 @@ class States(Base): # type: ignore
|
||||
return State(
|
||||
self.entity_id,
|
||||
self.state,
|
||||
orjson.loads(self.attributes),
|
||||
json.loads(self.attributes),
|
||||
_process_timestamp(self.last_changed),
|
||||
_process_timestamp(self.last_updated),
|
||||
context=context,
|
||||
|
||||
Reference in new issue
Block a user