Add type hints to integration tests (recorder) (#88313)

This commit is contained in:
epenet 2023-02-17 18:50:09 +01:00 committed by GitHub
parent 0a80ac19bc
commit 185cd61cbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 633 additions and 341 deletions

View file

@ -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