Add type hints to integration tests (part 13) (#87998)

This commit is contained in:
epenet 2023-02-13 14:38:37 +01:00 committed by GitHub
parent c557cd2b1e
commit ea11a30a35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 798 additions and 404 deletions

View file

@ -12,6 +12,7 @@ from homeassistant.components.vacuum import (
)
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.core import HomeAssistant
from .common import CONFIG, VACUUM_ENTITY_ID
from .conftest import setup_integration
@ -19,7 +20,7 @@ from .conftest import setup_integration
from tests.common import MockConfigEntry
async def test_unload_entry(hass, mock_account):
async def test_unload_entry(hass: HomeAssistant, mock_account) -> None:
"""Test being able to unload an entry."""
entry = await setup_integration(hass, mock_account, VACUUM_DOMAIN)
@ -47,7 +48,9 @@ async def test_unload_entry(hass, mock_account):
(LitterRobotException, ConfigEntryState.SETUP_RETRY),
),
)
async def test_entry_not_setup(hass, side_effect, expected_state):
async def test_entry_not_setup(
hass: HomeAssistant, side_effect, expected_state
) -> None:
"""Test being able to handle config entry not setup."""
entry = MockConfigEntry(
domain=litterrobot.DOMAIN,