Add type hints to integration tests (recorder) (#88313)
This commit is contained in:
parent
0a80ac19bc
commit
185cd61cbd
18 changed files with 633 additions and 341 deletions
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||
|
||||
import asyncio
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Awaitable, Callable, Generator, Mapping, Sequence
|
||||
from collections.abc import Generator, Mapping, Sequence
|
||||
from contextlib import contextmanager
|
||||
from datetime import datetime, timedelta, timezone
|
||||
import functools as ft
|
||||
|
@ -977,9 +977,6 @@ def assert_setup_component(count, domain=None):
|
|||
), f"setup_component failed, expected {count} got {res_len}: {res}"
|
||||
|
||||
|
||||
SetupRecorderInstanceT = Callable[..., Awaitable[Any]]
|
||||
|
||||
|
||||
def init_recorder_component(hass, add_config=None, db_url="sqlite://"):
|
||||
"""Initialize the recorder."""
|
||||
# Local import to avoid processing recorder and SQLite modules when running a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue