Add type hints to integration tests (m-p) (#87705)

This commit is contained in:
epenet 2023-02-08 16:48:54 +01:00 committed by GitHub
parent 6551eb168d
commit 3abf7ea18a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 637 additions and 438 deletions

View file

@ -6,13 +6,14 @@ from aiohttp import ClientError
from homeassistant.components.nightscout.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import CONF_URL
from homeassistant.core import HomeAssistant
from . import init_integration
from tests.common import MockConfigEntry
async def test_unload_entry(hass):
async def test_unload_entry(hass: HomeAssistant) -> None:
"""Test successful unload of entry."""
entry = await init_integration(hass)
@ -26,7 +27,7 @@ async def test_unload_entry(hass):
assert not hass.data.get(DOMAIN)
async def test_async_setup_raises_entry_not_ready(hass):
async def test_async_setup_raises_entry_not_ready(hass: HomeAssistant) -> None:
"""Test that it throws ConfigEntryNotReady when exception occurs during setup."""
config_entry = MockConfigEntry(
domain=DOMAIN,