Add type hints to integration tests (part 8) (#87982)

This commit is contained in:
epenet 2023-02-13 11:13:48 +01:00 committed by GitHub
parent 575f7c4205
commit 89e4ee5320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 696 additions and 339 deletions

View file

@ -1,6 +1,7 @@
"""Test init of Logitch Harmony Hub integration."""
from homeassistant.components.harmony.const import DOMAIN
from homeassistant.const import CONF_HOST, CONF_NAME
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from homeassistant.setup import async_setup_component
@ -18,7 +19,9 @@ from .const import (
from tests.common import MockConfigEntry, mock_registry
async def test_unique_id_migration(mock_hc, hass, mock_write_config):
async def test_unique_id_migration(
mock_hc, hass: HomeAssistant, mock_write_config
) -> None:
"""Test migration of switch unique ids to stable ones."""
entry = MockConfigEntry(
domain=DOMAIN, data={CONF_HOST: "192.0.2.0", CONF_NAME: HUB_NAME}