Add type hints to integration tests (part 1) (#87777)

This commit is contained in:
epenet 2023-02-09 16:09:13 +01:00 committed by GitHub
parent 2b3e6a4ca8
commit 07a1a0efa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 905 additions and 471 deletions

View file

@ -20,6 +20,7 @@ from homeassistant.const import (
CONF_PASSWORD,
CONF_STATE,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers import device_registry as dr, issue_registry as ir
from .conftest import (
@ -39,7 +40,7 @@ from .conftest import (
from tests.common import MockConfigEntry
async def test_migration_1_2(hass, mock_pyairvisual):
async def test_migration_1_2(hass: HomeAssistant, mock_pyairvisual) -> None:
"""Test migrating from version 1 to 2."""
entry = MockConfigEntry(
domain=DOMAIN,
@ -98,7 +99,7 @@ async def test_migration_1_2(hass, mock_pyairvisual):
}
async def test_migration_2_3(hass, mock_pyairvisual):
async def test_migration_2_3(hass: HomeAssistant, mock_pyairvisual) -> None:
"""Test migrating from version 2 to 3."""
entry = MockConfigEntry(
domain=DOMAIN,