Bugfix/9811 jinja autoescape (#9842)

* Added autoescape kwarg to Jinja environment

* Removed extra comma
This commit is contained in:
Adam Cooper 2017-10-13 06:01:29 +01:00 committed by Paulus Schoutsen
parent bbb406626b
commit a7f4bcc410

View File

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