Add type hints to integration tests (h-i) (#87703)

This commit is contained in:
epenet 2023-02-08 18:12:56 +01:00 committed by GitHub
parent 807c69f621
commit 37a2040d7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
91 changed files with 674 additions and 425 deletions

View file

@ -47,7 +47,7 @@ from homeassistant.const import (
SERVICE_RELOAD,
STATE_ON,
)
from homeassistant.core import HomeAssistantError, State
from homeassistant.core import HomeAssistant, HomeAssistantError, State
from homeassistant.helpers import device_registry, entity_registry as er, instance_id
from homeassistant.helpers.entityfilter import (
CONF_EXCLUDE_DOMAINS,
@ -744,7 +744,7 @@ async def test_homekit_start_with_a_device(
await homekit.async_stop()
async def test_homekit_stop(hass):
async def test_homekit_stop(hass: HomeAssistant) -> None:
"""Test HomeKit stop method."""
entry = await async_init_integration(hass)
homekit = _mock_homekit(hass, entry, HOMEKIT_MODE_BRIDGE)