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)