From 132107ba778bd3c91516177bb8d2b6e957bf2320 Mon Sep 17 00:00:00 2001 From: Zhaoyang Li Date: Sat, 15 Mar 2025 10:28:52 +0800 Subject: [PATCH] Add filetype jinja in backend --- custom_components/config_editor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/config_editor/__init__.py b/custom_components/config_editor/__init__.py index 56089d1..f8d71d6 100644 --- a/custom_components/config_editor/__init__.py +++ b/custom_components/config_editor/__init__.py @@ -29,7 +29,7 @@ async def async_setup(hass, config): async def websocket_create(hass, connection, msg): action = msg["action"] ext = msg["ext"] - if ext not in ["yaml","py","json","conf","js","txt","log","css","all"]: + if ext not in ["yaml","py","json","conf","js","txt","log","css","jinja","all"]: ext = "yaml" def extok(e):