Bump aiohttp to 3.9.0 (#4714)

* Bump aiohttp to 3.9.0

changelog: https://github.com/aio-libs/aiohttp/compare/v3.8.6...v3.9.0

* DeprecationWarning: shutdown_timeout should be set on BaseRunner
This commit is contained in:
J. Nick Koston 2023-11-20 20:31:16 +01:00 committed by GitHub
parent 176b63df52
commit f8f51740c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
aiodns==3.1.1
aiohttp==3.8.6
aiohttp==3.9.0
aiohttp-fast-url-dispatcher==0.1.1
async_timeout==4.0.3
atomicwrites-homeassistant==1.4.1

View File

@ -68,7 +68,7 @@ class RestAPI(CoreSysAttributes):
attach_fast_url_dispatcher(self.webapp, FastUrlDispatcher())
# service stuff
self._runner: web.AppRunner = web.AppRunner(self.webapp)
self._runner: web.AppRunner = web.AppRunner(self.webapp, shutdown_timeout=5)
self._site: web.TCPSite | None = None
async def load(self) -> None:
@ -673,9 +673,7 @@ class RestAPI(CoreSysAttributes):
async def start(self) -> None:
"""Run RESTful API webserver."""
await self._runner.setup()
self._site = web.TCPSite(
self._runner, host="0.0.0.0", port=80, shutdown_timeout=5
)
self._site = web.TCPSite(self._runner, host="0.0.0.0", port=80)
try:
await self._site.start()