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
View File
@@ -9,7 +9,6 @@ from aiohttp import web
from aiohttp.hdrs import CONTENT_TYPE, USER_AGENT
from aiohttp.web_exceptions import HTTPBadGateway, HTTPGatewayTimeout
import async_timeout
import orjson
from homeassistant.const import EVENT_HOMEASSISTANT_CLOSE, __version__
from homeassistant.core import Event, callback
@@ -68,7 +67,6 @@ def async_create_clientsession(
loop=hass.loop,
connector=connector,
headers={USER_AGENT: SERVER_SOFTWARE},
json_serialize=lambda x: orjson.dumps(x).decode(),
**kwargs,
)