mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Apply hass-relative-import to recorder tests (#78734)
This commit is contained in:
parent
36eda3801d
commit
019d297ff0
@ -19,8 +19,9 @@ from homeassistant.components.recorder.tasks import RecorderTask, StatisticsTask
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from . import db_schema_0
|
||||
|
||||
from tests.common import async_fire_time_changed, fire_time_changed
|
||||
from tests.components.recorder import db_schema_0
|
||||
|
||||
DEFAULT_PURGE_TASKS = 3
|
||||
|
||||
|
@ -25,11 +25,9 @@ from homeassistant.core import HomeAssistant, State
|
||||
from homeassistant.helpers.json import JSONEncoder
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from .common import async_wait_recording_done, wait_recording_done
|
||||
|
||||
from tests.common import SetupRecorderInstanceT, mock_state_change_event
|
||||
from tests.components.recorder.common import (
|
||||
async_wait_recording_done,
|
||||
wait_recording_done,
|
||||
)
|
||||
|
||||
|
||||
async def _async_get_states(
|
||||
|
@ -20,8 +20,9 @@ from homeassistant.helpers import recorder as recorder_helper
|
||||
from homeassistant.setup import setup_component
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from .common import wait_recording_done
|
||||
|
||||
from tests.common import get_test_home_assistant
|
||||
from tests.components.recorder.common import wait_recording_done
|
||||
|
||||
ORIG_TZ = dt_util.DEFAULT_TIME_ZONE
|
||||
|
||||
|
@ -25,10 +25,9 @@ from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from .common import corrupt_db_file, run_information_with_session
|
||||
from .common import corrupt_db_file, run_information_with_session, wait_recording_done
|
||||
|
||||
from tests.common import SetupRecorderInstanceT, async_test_home_assistant
|
||||
from tests.components.recorder.common import wait_recording_done
|
||||
|
||||
|
||||
def test_session_scope_not_setup(hass_recorder):
|
||||
|
Loading…
x
Reference in New Issue
Block a user