Add type hints to integration tests (j-m) (#87704)

This commit is contained in:
epenet 2023-02-08 19:06:59 +01:00 committed by GitHub
parent 630028106a
commit f75ac17554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
103 changed files with 605 additions and 417 deletions

View file

@ -2,11 +2,12 @@
from unittest.mock import AsyncMock, patch
from homeassistant.components import melissa
from homeassistant.core import HomeAssistant
VALID_CONFIG = {"melissa": {"username": "********", "password": "********"}}
async def test_setup(hass):
async def test_setup(hass: HomeAssistant) -> None:
"""Test setting up the Melissa component."""
with patch("melissa.AsyncMelissa") as mocked_melissa, patch.object(
melissa, "async_load_platform"