mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-14 12:46:32 +00:00
This reverts commit f8f51740c11838067bf7046a342abb7154c01844.
This commit is contained in:
parent
ce26e1dac6
commit
c0868d9dac
@ -1,5 +1,5 @@
|
||||
aiodns==3.1.1
|
||||
aiohttp==3.9.0
|
||||
aiohttp==3.8.6
|
||||
aiohttp-fast-url-dispatcher==0.1.1
|
||||
async_timeout==4.0.3
|
||||
atomicwrites-homeassistant==1.4.1
|
||||
|
@ -68,7 +68,7 @@ class RestAPI(CoreSysAttributes):
|
||||
attach_fast_url_dispatcher(self.webapp, FastUrlDispatcher())
|
||||
|
||||
# service stuff
|
||||
self._runner: web.AppRunner = web.AppRunner(self.webapp, shutdown_timeout=5)
|
||||
self._runner: web.AppRunner = web.AppRunner(self.webapp)
|
||||
self._site: web.TCPSite | None = None
|
||||
|
||||
async def load(self) -> None:
|
||||
@ -673,7 +673,9 @@ 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)
|
||||
self._site = web.TCPSite(
|
||||
self._runner, host="0.0.0.0", port=80, shutdown_timeout=5
|
||||
)
|
||||
|
||||
try:
|
||||
await self._site.start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user