mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Speed up websocket and ingress with aiohttp-zlib-ng (#103247)
This commit is contained in:
parent
35e1ecec8d
commit
45f5c21402
@ -23,6 +23,7 @@ from aiohttp.web_urldispatcher import (
|
||||
UrlDispatcher,
|
||||
UrlMappingMatchInfo,
|
||||
)
|
||||
from aiohttp_zlib_ng import enable_zlib_ng
|
||||
from cryptography import x509
|
||||
from cryptography.hazmat.primitives import hashes, serialization
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||
@ -173,6 +174,8 @@ class ApiConfig:
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the HTTP API and debug interface."""
|
||||
enable_zlib_ng()
|
||||
|
||||
conf: ConfData | None = config.get(DOMAIN)
|
||||
|
||||
if conf is None:
|
||||
|
@ -6,5 +6,5 @@
|
||||
"integration_type": "system",
|
||||
"iot_class": "local_push",
|
||||
"quality_scale": "internal",
|
||||
"requirements": ["aiohttp_cors==0.7.0"]
|
||||
"requirements": ["aiohttp_cors==0.7.0", "aiohttp-zlib-ng==0.1.1"]
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
aiodiscover==1.5.1
|
||||
aiohttp-zlib-ng==0.1.1
|
||||
aiohttp==3.8.5;python_version<'3.12'
|
||||
aiohttp==3.9.0b0;python_version>='3.12'
|
||||
aiohttp_cors==0.7.0
|
||||
|
@ -25,6 +25,8 @@ requires-python = ">=3.11.0"
|
||||
dependencies = [
|
||||
"aiohttp==3.9.0b0;python_version>='3.12'",
|
||||
"aiohttp==3.8.5;python_version<'3.12'",
|
||||
"aiohttp_cors==0.7.0",
|
||||
"aiohttp-zlib-ng==0.1.1",
|
||||
"astral==2.2",
|
||||
"attrs==23.1.0",
|
||||
"atomicwrites-homeassistant==1.4.1",
|
||||
|
@ -3,6 +3,8 @@
|
||||
# Home Assistant Core
|
||||
aiohttp==3.9.0b0;python_version>='3.12'
|
||||
aiohttp==3.8.5;python_version<'3.12'
|
||||
aiohttp_cors==0.7.0
|
||||
aiohttp-zlib-ng==0.1.1
|
||||
astral==2.2
|
||||
attrs==23.1.0
|
||||
atomicwrites-homeassistant==1.4.1
|
||||
|
@ -257,6 +257,9 @@ aioharmony==0.2.10
|
||||
# homeassistant.components.homekit_controller
|
||||
aiohomekit==3.0.9
|
||||
|
||||
# homeassistant.components.http
|
||||
aiohttp-zlib-ng==0.1.1
|
||||
|
||||
# homeassistant.components.emulated_hue
|
||||
# homeassistant.components.http
|
||||
aiohttp_cors==0.7.0
|
||||
|
@ -235,6 +235,9 @@ aioharmony==0.2.10
|
||||
# homeassistant.components.homekit_controller
|
||||
aiohomekit==3.0.9
|
||||
|
||||
# homeassistant.components.http
|
||||
aiohttp-zlib-ng==0.1.1
|
||||
|
||||
# homeassistant.components.emulated_hue
|
||||
# homeassistant.components.http
|
||||
aiohttp_cors==0.7.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user