Revert "Use orjson to parse json faster (#32153)" (#32185)

This reverts commit 2365e2e8cf.
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-02-25 21:07:16 +01:00
1 parent ceb3985a99
commit 7d8da47309
7 files changed
+6 -14

No files matched your search

+2 -3
View File
@@ -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,