Move DATA_LOGGING constant to homeassistant.const (#111763)

This commit is contained in:
J. Nick Koston
2024-02-28 14:09:51 -10:00
committed by Paulus Schoutsen
parent acfd1c2755
commit a9fd113a80
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -32,6 +32,7 @@ from .components import (
)
from .const import (
FORMAT_DATETIME,
KEY_DATA_LOGGING as DATA_LOGGING,
REQUIRED_NEXT_PYTHON_HA_RELEASE,
REQUIRED_NEXT_PYTHON_VER,
SIGNAL_BOOTSTRAP_INTEGRATIONS,
@@ -73,7 +74,6 @@ _LOGGER = logging.getLogger(__name__)
ERROR_LOG_FILENAME = "home-assistant.log"
# hass.data key for logging information.
DATA_LOGGING = "logging"
DATA_REGISTRIES_LOADED = "bootstrap_registries_loaded"
LOG_SLOW_STARTUP_INTERVAL = 60
+1 -1
View File
@@ -12,7 +12,6 @@ import voluptuous as vol
from homeassistant.auth.models import User
from homeassistant.auth.permissions.const import POLICY_READ
from homeassistant.bootstrap import DATA_LOGGING
from homeassistant.components.http import (
KEY_HASS,
KEY_HASS_USER,
@@ -23,6 +22,7 @@ from homeassistant.const import (
CONTENT_TYPE_JSON,
EVENT_HOMEASSISTANT_STOP,
EVENT_STATE_CHANGED,
KEY_DATA_LOGGING as DATA_LOGGING,
MATCH_ALL,
URL_API,
URL_API_COMPONENTS,
+5
View File
@@ -1602,6 +1602,11 @@ HASSIO_USER_NAME = "Supervisor"
SIGNAL_BOOTSTRAP_INTEGRATIONS = "bootstrap_integrations"
# hass.data key for logging information.
KEY_DATA_LOGGING = "logging"
# Date/Time formats
FORMAT_DATE: Final = "%Y-%m-%d"
FORMAT_TIME: Final = "%H:%M:%S"