Fix deprecation warning in test (#25506)
parent
0df1bb5029
commit
297cd3dc13
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue