mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move imports to top for system_log (#29465)
This commit is contained in:
parent
04722fdd63
commit
ed464a75b2
@ -8,8 +8,8 @@ import voluptuous as vol
|
||||
|
||||
from homeassistant import __path__ as HOMEASSISTANT_PATH
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
CONF_MAX_ENTRIES = "max_entries"
|
||||
CONF_FIRE_EVENT = "fire_event"
|
||||
@ -57,6 +57,7 @@ def _figure_out_source(record, call_stack, hass):
|
||||
paths = [HOMEASSISTANT_PATH[0], hass.config.config_dir]
|
||||
try:
|
||||
# If netdisco is installed check its path too.
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from netdisco import __path__ as netdisco_path
|
||||
|
||||
paths.append(netdisco_path[0])
|
||||
|
Loading…
x
Reference in New Issue
Block a user