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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user