diff --git a/homeassistant/components/lovelace/cast.py b/homeassistant/components/lovelace/cast.py index e63ea564f30..a4848392dcf 100644 --- a/homeassistant/components/lovelace/cast.py +++ b/homeassistant/components/lovelace/cast.py @@ -26,7 +26,7 @@ from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.network import NoURLAvailableError, get_url from .const import DOMAIN, LOVELACE_DATA -from .util import ConfigNotFound +from .exceptions import ConfigNotFound DEFAULT_DASHBOARD = "_default_" diff --git a/homeassistant/components/lovelace/dashboard.py b/homeassistant/components/lovelace/dashboard.py index a1a9a98e5c6..3bdea568013 100644 --- a/homeassistant/components/lovelace/dashboard.py +++ b/homeassistant/components/lovelace/dashboard.py @@ -33,7 +33,7 @@ from .const import ( STORAGE_DASHBOARD_CREATE_FIELDS, STORAGE_DASHBOARD_UPDATE_FIELDS, ) -from .util import ConfigNotFound +from .exceptions import ConfigNotFound CONFIG_STORAGE_KEY_DEFAULT = DOMAIN CONFIG_STORAGE_KEY = "lovelace.{}" diff --git a/homeassistant/components/lovelace/util.py b/homeassistant/components/lovelace/exceptions.py similarity index 81% rename from homeassistant/components/lovelace/util.py rename to homeassistant/components/lovelace/exceptions.py index 7d98959d62f..2e271caf68b 100644 --- a/homeassistant/components/lovelace/util.py +++ b/homeassistant/components/lovelace/exceptions.py @@ -1,4 +1,4 @@ -"""Utils for Lovelace.""" +"""Exceptions for Lovelace.""" from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/lovelace/websocket.py b/homeassistant/components/lovelace/websocket.py index 5feb7deb449..80acd006891 100644 --- a/homeassistant/components/lovelace/websocket.py +++ b/homeassistant/components/lovelace/websocket.py @@ -14,8 +14,9 @@ from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import config_validation as cv from homeassistant.helpers.json import json_fragment -from .const import CONF_URL_PATH, LOVELACE_DATA, ConfigNotFound +from .const import CONF_URL_PATH, LOVELACE_DATA from .dashboard import LovelaceConfig +from .exceptions import ConfigNotFound if TYPE_CHECKING: from .resources import ResourceStorageCollection