1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add type hints to integration tests (d-e) (#87699)

This commit is contained in:
epenet
2023-02-08 13:01:44 +01:00
committed by GitHub
parent 5e214f2e43
commit 3052de3e8e
81 changed files with 765 additions and 450 deletions

View File

@@ -1,5 +1,4 @@
"""deCONZ fan platform tests."""
from unittest.mock import patch
import pytest
@@ -13,6 +12,7 @@ from homeassistant.components.fan import (
SERVICE_TURN_ON,
)
from homeassistant.const import ATTR_ENTITY_ID, STATE_OFF, STATE_ON, STATE_UNAVAILABLE
from homeassistant.core import HomeAssistant
from .test_gateway import (
DECONZ_WEB_REQUEST,
@@ -20,8 +20,12 @@ from .test_gateway import (
setup_deconz_integration,
)
from tests.test_util.aiohttp import AiohttpClientMocker
async def test_no_fans(hass, aioclient_mock):
async def test_no_fans(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None:
"""Test that no fan entities are created."""
await setup_deconz_integration(hass, aioclient_mock)
assert len(hass.states.async_all()) == 0