Add type hints to integration tests (part 22) (#88234)

This commit is contained in:
epenet 2023-02-16 14:08:03 +01:00 committed by GitHub
parent 567c7f4f99
commit 88cfbf6a34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 1269 additions and 559 deletions

View file

@ -5,7 +5,7 @@ from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
async def test_create_entry(hass: HomeAssistant):
async def test_create_entry(hass: HomeAssistant) -> None:
"""Test an entry is created by async_setup."""
assert len(hass.config_entries.async_entries(thread.DOMAIN)) == 0
assert await async_setup_component(hass, thread.DOMAIN, {})
@ -14,7 +14,7 @@ async def test_create_entry(hass: HomeAssistant):
assert len(hass.config_entries.async_entries(thread.DOMAIN)) == 1
async def test_remove_entry(hass: HomeAssistant, thread_config_entry):
async def test_remove_entry(hass: HomeAssistant, thread_config_entry) -> None:
"""Test removing the entry."""
config_entry = hass.config_entries.async_entries(thread.DOMAIN)[0]