From 297cd3dc138c1ba1ca72b45910ab7aad46f3219a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 26 Jul 2019 17:40:40 -0700 Subject: [PATCH] Fix deprecation warning in test (#25506) --- homeassistant/components/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/http/__init__.py b/homeassistant/components/http/__init__.py index 7731c96c9ac..7790837fff1 100644 --- a/homeassistant/components/http/__init__.py +++ b/homeassistant/components/http/__init__.py @@ -269,7 +269,7 @@ class HomeAssistantHTTP: for the redirect, otherwise it has to be a string with placeholders in rule syntax. """ - def redirect(request): + async def redirect(request): """Redirect to location.""" raise HTTPMovedPermanently(redirect_to)