mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix deprecation warning in test (#25506)
This commit is contained in:
@@ -269,7 +269,7 @@ class HomeAssistantHTTP:
|
|||||||
for the redirect, otherwise it has to be a string with placeholders in
|
for the redirect, otherwise it has to be a string with placeholders in
|
||||||
rule syntax.
|
rule syntax.
|
||||||
"""
|
"""
|
||||||
def redirect(request):
|
async def redirect(request):
|
||||||
"""Redirect to location."""
|
"""Redirect to location."""
|
||||||
raise HTTPMovedPermanently(redirect_to)
|
raise HTTPMovedPermanently(redirect_to)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user