move hass-frontend import back down (#28203)

This commit is contained in:
gngj 2019-10-25 19:02:40 +03:00 committed by Paulus Schoutsen
parent 98cf3f4aa3
commit 9153729b21

View File

@ -7,7 +7,6 @@ import pathlib
from typing import Any, Dict, Optional, Set, Tuple
from aiohttp import hdrs, web, web_urldispatcher
import hass_frontend
import jinja2
import voluptuous as vol
from yarl import URL
@ -241,6 +240,8 @@ def _frontend_root(dev_repo_path):
"""Return root path to the frontend files."""
if dev_repo_path is not None:
return pathlib.Path(dev_repo_path) / "hass_frontend"
# Keep import here so that we can import frontend without installing reqs
import hass_frontend
return hass_frontend.where()