1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add type hints to integration tests (part 14) (#88005)

This commit is contained in:
epenet
2023-02-15 10:31:43 +01:00
committed by GitHub
parent a0e0feb444
commit 6c430e03bc
51 changed files with 630 additions and 331 deletions

View File

@@ -5,8 +5,10 @@ import datetime
from freezegun import freeze_time
import pytest
import requests_mock
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from .const import DOMAIN, METOFFICE_CONFIG_WAVERTREE, TEST_COORDINATES_WAVERTREE
@@ -87,12 +89,12 @@ from tests.common import MockConfigEntry
],
)
async def test_migrate_unique_id(
hass,
hass: HomeAssistant,
old_unique_id: str,
new_unique_id: str,
migration_needed: bool,
requests_mock,
):
requests_mock: requests_mock.Mocker,
) -> None:
"""Test unique id migration."""
entry = MockConfigEntry(