mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Do not serve HTTP requests while stopping
This commit is contained in:
parent
0364498dee
commit
2e2a996a8e
@ -461,6 +461,9 @@ def request_handler_factory(view, handler):
|
||||
@asyncio.coroutine
|
||||
def handle(request):
|
||||
"""Handle incoming request."""
|
||||
if not view.hass.is_running:
|
||||
return web.Response(status=503)
|
||||
|
||||
remote_addr = view.hass.http.get_real_ip(request)
|
||||
|
||||
# Auth code verbose on purpose
|
||||
|
Loading…
x
Reference in New Issue
Block a user