1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 14:08:21 +00:00

Add type hints to integration tests (part 4) (#87848)

This commit is contained in:
epenet
2023-02-11 08:26:13 +01:00
committed by GitHub
parent a385a00d08
commit 9f688a564f
52 changed files with 733 additions and 336 deletions

View File

@@ -31,7 +31,9 @@ async def test_no_fans(
assert len(hass.states.async_all()) == 0
async def test_fans(hass, aioclient_mock, mock_deconz_websocket):
async def test_fans(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker, mock_deconz_websocket
) -> None:
"""Test that all supported fan entities are created."""
data = {
"lights": {
@@ -240,7 +242,9 @@ async def test_fans(hass, aioclient_mock, mock_deconz_websocket):
assert len(hass.states.async_all()) == 0
async def test_fans_legacy_speed_modes(hass, aioclient_mock, mock_deconz_websocket):
async def test_fans_legacy_speed_modes(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker, mock_deconz_websocket
) -> None:
"""Test that all supported fan entities are created.
Legacy fan support.