From e6b73013672fd56f9f1d3999f77170d951bf8bbe Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 14 Jun 2024 01:27:50 -0500 Subject: [PATCH] Fix blocking I/O in CachingStaticResource (#119663) --- homeassistant/components/http/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/http/static.py b/homeassistant/components/http/static.py index b7bb9d4f3a8..a7280fb9b2f 100644 --- a/homeassistant/components/http/static.py +++ b/homeassistant/components/http/static.py @@ -80,4 +80,4 @@ class CachingStaticResource(StaticResource): }, ) - return await super()._handle(request) + raise HTTPForbidden if filepath is None else HTTPNotFound