Bugfix/9811 jinja autoescape (#9842)

* Added autoescape kwarg to Jinja environment

* Removed extra comma
pull/9885/head
Adam Cooper 2017-10-13 06:01:29 +01:00 committed by Paulus Schoutsen
parent fdb698bef0
commit 2547a235c1
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ class IndexView(HomeAssistantView):
from jinja2 import FileSystemLoader, Environment
self.templates = Environment(
autoescape=True,
loader=FileSystemLoader(
os.path.join(os.path.dirname(__file__), 'templates/')
)