Add return type hints in tests (k-z) (#118942)

This commit is contained in:
epenet
2024-06-06 10:11:29 +02:00
committed by GitHub
parent b5b7c9bcd5
commit c7cc465e5c
26 changed files with 79 additions and 76 deletions

View File

@@ -89,7 +89,7 @@ async def setup_integration(
await hass.async_block_till_done()
async def test_not_supported(hass: HomeAssistant):
async def test_not_supported(hass: HomeAssistant) -> None:
"""Ensure update entity works if service not supported."""
update_firmware = AsyncMock()
@@ -107,7 +107,7 @@ async def test_not_supported(hass: HomeAssistant):
update_firmware.assert_not_called()
async def test_on_latest_firmware(hass: HomeAssistant):
async def test_on_latest_firmware(hass: HomeAssistant) -> None:
"""Test device on latest firmware."""
update_firmware = AsyncMock()
@@ -125,7 +125,7 @@ async def test_on_latest_firmware(hass: HomeAssistant):
update_firmware.assert_not_called()
async def test_update_available(hass: HomeAssistant):
async def test_update_available(hass: HomeAssistant) -> None:
"""Test device has firmware update available."""
update_firmware = AsyncMock()
@@ -158,7 +158,7 @@ async def test_update_available(hass: HomeAssistant):
update_firmware.assert_called_once()
async def test_firmware_update_not_required(hass: HomeAssistant):
async def test_firmware_update_not_required(hass: HomeAssistant) -> None:
"""Ensure firmware install does nothing if up to date."""
update_firmware = AsyncMock()