mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 10:08:23 +00:00
Use exceptions module
This commit is contained in:
parent
59e36e0294
commit
c8034f176b
@ -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_"
|
||||
|
||||
|
@ -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.{}"
|
||||
|
@ -1,4 +1,4 @@
|
||||
"""Utils for Lovelace."""
|
||||
"""Exceptions for Lovelace."""
|
||||
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user