Add type hints to integration tests (f-g) (#87700)

This commit is contained in:
epenet 2023-02-08 13:33:52 +01:00 committed by GitHub
parent 3052de3e8e
commit 7a4d15a657
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 609 additions and 415 deletions

View file

@ -4,6 +4,7 @@ from unittest.mock import patch
from homeassistant.components.freedompro.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry
@ -20,7 +21,7 @@ async def test_async_setup_entry(hass, init_integration):
assert state is not None
async def test_config_not_ready(hass):
async def test_config_not_ready(hass: HomeAssistant) -> None:
"""Test for setup failure if connection to Freedompro is missing."""
entry = MockConfigEntry(
domain=DOMAIN,