From 9153729b2105ffac4738df13a1ac7428eb83cfce Mon Sep 17 00:00:00 2001 From: gngj Date: Fri, 25 Oct 2019 19:02:40 +0300 Subject: [PATCH] move hass-frontend import back down (#28203) --- homeassistant/components/frontend/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index 541d1bf473d..f82350d994d 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -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()