mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Add return type hints in tests (k-z) (#118942)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user