Add type hints to integration tests (part 23) (#88235)

This commit is contained in:
epenet 2023-02-17 16:40:46 +01:00 committed by GitHub
parent aa50096a31
commit 9a5f88f55f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 651 additions and 408 deletions

View file

@ -1,5 +1,4 @@
"""Test UniFi Protect diagnostics."""
from pyunifiprotect.data import NVR, Light
from homeassistant.components.unifiprotect.const import CONF_ALLOW_EA
@ -8,11 +7,15 @@ from homeassistant.core import HomeAssistant
from .utils import MockUFPFixture, init_entry
from tests.components.diagnostics import get_diagnostics_for_config_entry
from tests.typing import ClientSessionGenerator
async def test_diagnostics(
hass: HomeAssistant, ufp: MockUFPFixture, light: Light, hass_client
):
hass: HomeAssistant,
ufp: MockUFPFixture,
light: Light,
hass_client: ClientSessionGenerator,
) -> None:
"""Test generating diagnostics for a config entry."""
await init_entry(hass, ufp, [light])