From 3cc4fdaa34843950588181e39a8d67b7573b4e87 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 29 Oct 2016 14:45:31 -0700 Subject: [PATCH] Fix HTTP static file singular (#4118) --- homeassistant/components/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index b13e786f50d..680ae9cfeda 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -328,8 +328,8 @@ class HomeAssistantWSGI(object): @asyncio.coroutine def serve_file(request): """Redirect to location.""" - yield from _GZIP_FILE_SENDER.send(request, filepath) - return + res = yield from _GZIP_FILE_SENDER.send(request, filepath) + return res # aiohttp supports regex matching for variables. Using that as temp # to work around cache busting MD5.