Add type hints to integration tests (m-p) (#87705)
This commit is contained in:
parent
6551eb168d
commit
3abf7ea18a
99 changed files with 637 additions and 438 deletions
|
@ -5,6 +5,7 @@ from pynzbgetapi import NZBGetAPIException
|
|||
|
||||
from homeassistant.components.nzbget.const import DOMAIN
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from . import ENTRY_CONFIG, _patch_version, init_integration
|
||||
|
||||
|
@ -25,7 +26,7 @@ async def test_unload_entry(hass, nzbget_api):
|
|||
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, data=ENTRY_CONFIG)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue