Add type hints to integration tests (part 2) (#88493)

This commit is contained in:
epenet
2023-02-21 09:25:05 +01:00
committed by GitHub
parent ebb450c946
commit a102883eff
42 changed files with 367 additions and 230 deletions

View File

@@ -51,7 +51,7 @@ async def test_if_fires_on_hass_start(
assert calls[0].data["id"] == 0
async def test_if_fires_on_hass_shutdown(hass):
async def test_if_fires_on_hass_shutdown(hass: HomeAssistant) -> None:
"""Test the firing when Home Assistant shuts down."""
calls = async_mock_service(hass, "test", "automation")
hass.state = CoreState.not_running