mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
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:
parent
176b63df52
commit
f8f51740c1
@ -1,5 +1,5 @@
|
|||||||
aiodns==3.1.1
|
aiodns==3.1.1
|
||||||
aiohttp==3.8.6
|
aiohttp==3.9.0
|
||||||
aiohttp-fast-url-dispatcher==0.1.1
|
aiohttp-fast-url-dispatcher==0.1.1
|
||||||
async_timeout==4.0.3
|
async_timeout==4.0.3
|
||||||
atomicwrites-homeassistant==1.4.1
|
atomicwrites-homeassistant==1.4.1
|
||||||
|
@ -68,7 +68,7 @@ class RestAPI(CoreSysAttributes):
|
|||||||
attach_fast_url_dispatcher(self.webapp, FastUrlDispatcher())
|
attach_fast_url_dispatcher(self.webapp, FastUrlDispatcher())
|
||||||
|
|
||||||
# service stuff
|
# 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
|
self._site: web.TCPSite | None = None
|
||||||
|
|
||||||
async def load(self) -> None:
|
async def load(self) -> None:
|
||||||
@ -673,9 +673,7 @@ class RestAPI(CoreSysAttributes):
|
|||||||
async def start(self) -> None:
|
async def start(self) -> None:
|
||||||
"""Run RESTful API webserver."""
|
"""Run RESTful API webserver."""
|
||||||
await self._runner.setup()
|
await self._runner.setup()
|
||||||
self._site = web.TCPSite(
|
self._site = web.TCPSite(self._runner, host="0.0.0.0", port=80)
|
||||||
self._runner, host="0.0.0.0", port=80, shutdown_timeout=5
|
|
||||||
)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await self._site.start()
|
await self._site.start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user