Add type hints to integration tests (part 13) (#87998)
This commit is contained in:
parent
c557cd2b1e
commit
ea11a30a35
53 changed files with 798 additions and 404 deletions
|
@ -14,7 +14,7 @@ async def test_setup_with_no_config(hass: HomeAssistant) -> None:
|
|||
assert DOMAIN not in hass.data
|
||||
|
||||
|
||||
async def test_setup_with_config_to_import(hass, mock_litejet):
|
||||
async def test_setup_with_config_to_import(hass: HomeAssistant, mock_litejet) -> None:
|
||||
"""Test that import happens."""
|
||||
assert (
|
||||
await async_setup_component(hass, DOMAIN, {DOMAIN: {CONF_PORT: "/dev/hello"}})
|
||||
|
@ -23,7 +23,7 @@ async def test_setup_with_config_to_import(hass, mock_litejet):
|
|||
assert DOMAIN in hass.data
|
||||
|
||||
|
||||
async def test_unload_entry(hass, mock_litejet):
|
||||
async def test_unload_entry(hass: HomeAssistant, mock_litejet) -> None:
|
||||
"""Test being able to unload an entry."""
|
||||
entry = await async_init_integration(hass, use_switch=True, use_scene=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue