Import logbook constants from root (#78236)

This commit is contained in:
epenet 2022-09-12 17:53:06 +02:00 committed by GitHub
parent 6a5678154a
commit 0ce526efe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -1,11 +1,11 @@
"""Describe logbook events."""
from homeassistant.components.logbook import LazyEventPartialState
from homeassistant.components.logbook.const import (
from homeassistant.components.logbook import (
LOGBOOK_ENTRY_CONTEXT_ID,
LOGBOOK_ENTRY_ENTITY_ID,
LOGBOOK_ENTRY_MESSAGE,
LOGBOOK_ENTRY_NAME,
LOGBOOK_ENTRY_SOURCE,
LazyEventPartialState,
)
from homeassistant.const import ATTR_ENTITY_ID, ATTR_NAME
from homeassistant.core import HomeAssistant, callback

View file

@ -3,7 +3,7 @@ from __future__ import annotations
from collections.abc import Callable
from homeassistant.components.logbook.const import (
from homeassistant.components.logbook import (
LOGBOOK_ENTRY_ICON,
LOGBOOK_ENTRY_MESSAGE,
LOGBOOK_ENTRY_NAME,

View file

@ -3,7 +3,7 @@ from __future__ import annotations
from collections.abc import Callable
from homeassistant.components.logbook.const import (
from homeassistant.components.logbook import (
LOGBOOK_ENTRY_ENTITY_ID,
LOGBOOK_ENTRY_ICON,
LOGBOOK_ENTRY_MESSAGE,

View file

@ -1,5 +1,5 @@
"""Describe logbook events."""
from homeassistant.components.logbook.const import (
from homeassistant.components.logbook import (
LOGBOOK_ENTRY_CONTEXT_ID,
LOGBOOK_ENTRY_ENTITY_ID,
LOGBOOK_ENTRY_MESSAGE,