Fix deprecation warning in test (#25506)

pull/25501/head
Paulus Schoutsen 2019-07-26 17:40:40 -07:00 committed by GitHub
parent 0df1bb5029
commit 297cd3dc13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)