Expose and use lovelace constants from root (#78246)

This commit is contained in:
epenet 2022-09-12 18:10:33 +02:00 committed by GitHub
parent 4dcbe3e608
commit 45a69090f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import async_get_integration
from . import dashboard, resources, websocket
from .const import (
from .const import ( # noqa: F401
CONF_ICON,
CONF_REQUIRE_ADMIN,
CONF_SHOW_IN_SIDEBAR,
@ -23,6 +23,7 @@ from .const import (
DASHBOARD_BASE_CREATE_FIELDS,
DEFAULT_ICON,
DOMAIN,
EVENT_LOVELACE_UPDATED,
MODE_STORAGE,
MODE_YAML,
RESOURCE_CREATE_FIELDS,

View File

@ -7,7 +7,7 @@ from __future__ import annotations
from typing import Final
from homeassistant.components.frontend import EVENT_PANELS_UPDATED
from homeassistant.components.lovelace.const import EVENT_LOVELACE_UPDATED
from homeassistant.components.lovelace import EVENT_LOVELACE_UPDATED
from homeassistant.components.persistent_notification import (
EVENT_PERSISTENT_NOTIFICATIONS_UPDATED,
)