Merge pull request #22 from lizy14/patch-1

Add filetype jinja in backend
This commit is contained in:
junkfix 2025-03-15 20:55:48 +00:00 committed by GitHub
commit b1371a1141
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):