Adjust hass_client type hint in integration tests (#86954)
* Adjust hass_client type hint in integration tests * Adjust hass_client_no_auth * Fix rebase
This commit is contained in:
parent
8bff95014c
commit
a79be493e5
54 changed files with 179 additions and 178 deletions
|
@ -2,7 +2,6 @@
|
|||
import json
|
||||
from unittest.mock import patch
|
||||
|
||||
from aiohttp import ClientSession
|
||||
from pyuptimerobot import UptimeRobotException
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
@ -17,11 +16,12 @@ from .common import (
|
|||
)
|
||||
|
||||
from tests.components.diagnostics import get_diagnostics_for_config_entry
|
||||
from tests.typing import ClientSessionGenerator
|
||||
|
||||
|
||||
async def test_entry_diagnostics(
|
||||
hass: HomeAssistant,
|
||||
hass_client: ClientSession,
|
||||
hass_client: ClientSessionGenerator,
|
||||
) -> None:
|
||||
"""Test config entry diagnostics."""
|
||||
entry = await setup_uptimerobot_integration(hass)
|
||||
|
@ -58,7 +58,7 @@ async def test_entry_diagnostics(
|
|||
|
||||
async def test_entry_diagnostics_exception(
|
||||
hass: HomeAssistant,
|
||||
hass_client: ClientSession,
|
||||
hass_client: ClientSessionGenerator,
|
||||
) -> None:
|
||||
"""Test config entry diagnostics with exception."""
|
||||
entry = await setup_uptimerobot_integration(hass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue