From 9bca09a5131097202e19e6b5ba9a77590e6b372d Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:17:05 +0100 Subject: [PATCH] Remove obsolete .txt extension from diagnostics download (#108028) --- homeassistant/components/diagnostics/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/diagnostics/__init__.py b/homeassistant/components/diagnostics/__init__.py index 2ff220b9096..939bd5f5000 100644 --- a/homeassistant/components/diagnostics/__init__.py +++ b/homeassistant/components/diagnostics/__init__.py @@ -197,7 +197,7 @@ async def _async_get_json_file_response( return web.Response( body=json_data, content_type="application/json", - headers={"Content-Disposition": f'attachment; filename="{filename}.json.txt"'}, + headers={"Content-Disposition": f'attachment; filename="{filename}.json"'}, )