diff --git a/homeassistant/components/http/__init__.py b/homeassistant/components/http/__init__.py index 449f00fb335..6bb0c154540 100644 --- a/homeassistant/components/http/__init__.py +++ b/homeassistant/components/http/__init__.py @@ -520,7 +520,9 @@ class HomeAssistantHTTP: # pylint: disable-next=protected-access self.app._router.freeze = lambda: None # type: ignore[method-assign] - self.runner = web.AppRunner(self.app, handler_cancellation=True) + self.runner = web.AppRunner( + self.app, handler_cancellation=True, shutdown_timeout=10 + ) await self.runner.setup() self.site = HomeAssistantTCPSite( diff --git a/homeassistant/components/http/web_runner.py b/homeassistant/components/http/web_runner.py index 6d03b874a64..5c0931b97ca 100644 --- a/homeassistant/components/http/web_runner.py +++ b/homeassistant/components/http/web_runner.py @@ -29,7 +29,6 @@ class HomeAssistantTCPSite(web.BaseSite): host: None | str | list[str], port: int, *, - shutdown_timeout: float = 10.0, ssl_context: SSLContext | None = None, backlog: int = 128, reuse_address: bool | None = None, @@ -38,7 +37,6 @@ class HomeAssistantTCPSite(web.BaseSite): """Initialize HomeAssistantTCPSite.""" super().__init__( runner, - shutdown_timeout=shutdown_timeout, ssl_context=ssl_context, backlog=backlog, )