mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add type hints to integration tests (d-e) (#87699)
This commit is contained in:
@@ -5,13 +5,14 @@ from pydexcom import AccountError, SessionError
|
||||
|
||||
from homeassistant.components.dexcom.const import DOMAIN
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from . import CONFIG, init_integration
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
async def test_setup_entry_account_error(hass):
|
||||
async def test_setup_entry_account_error(hass: HomeAssistant) -> None:
|
||||
"""Test entry setup failed due to account error."""
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
@@ -31,7 +32,7 @@ async def test_setup_entry_account_error(hass):
|
||||
assert result is False
|
||||
|
||||
|
||||
async def test_setup_entry_session_error(hass):
|
||||
async def test_setup_entry_session_error(hass: HomeAssistant) -> None:
|
||||
"""Test entry setup failed due to session error."""
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
@@ -51,7 +52,7 @@ async def test_setup_entry_session_error(hass):
|
||||
assert result is False
|
||||
|
||||
|
||||
async def test_unload_entry(hass):
|
||||
async def test_unload_entry(hass: HomeAssistant) -> None:
|
||||
"""Test successful unload of entry."""
|
||||
entry = await init_integration(hass)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user