Add missing hass type in tests/helpers (#124039)

This commit is contained in:
epenet 2024-08-16 17:09:12 +02:00 committed by GitHub
parent 2cd4456762
commit 56b4a7f291
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 146 additions and 61 deletions

View file

@ -14,7 +14,7 @@ async def test_at_start_when_running_awaitable(hass: HomeAssistant) -> None:
calls = []
async def cb_at_start(hass):
async def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -40,7 +40,7 @@ async def test_at_start_when_running_callback(
calls = []
@callback
def cb_at_start(hass):
def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -65,7 +65,7 @@ async def test_at_start_when_starting_awaitable(hass: HomeAssistant) -> None:
calls = []
async def cb_at_start(hass):
async def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -88,7 +88,7 @@ async def test_at_start_when_starting_callback(
calls = []
@callback
def cb_at_start(hass):
def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -116,7 +116,7 @@ async def test_cancelling_at_start_when_running(
calls = []
async def cb_at_start(hass):
async def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -137,7 +137,7 @@ async def test_cancelling_at_start_when_starting(hass: HomeAssistant) -> None:
calls = []
@callback
def cb_at_start(hass):
def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -156,7 +156,7 @@ async def test_at_started_when_running_awaitable(hass: HomeAssistant) -> None:
calls = []
async def cb_at_start(hass):
async def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -181,7 +181,7 @@ async def test_at_started_when_running_callback(
calls = []
@callback
def cb_at_start(hass):
def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -205,7 +205,7 @@ async def test_at_started_when_starting_awaitable(hass: HomeAssistant) -> None:
calls = []
async def cb_at_start(hass):
async def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -231,7 +231,7 @@ async def test_at_started_when_starting_callback(
calls = []
@callback
def cb_at_start(hass):
def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -263,7 +263,7 @@ async def test_cancelling_at_started_when_running(
calls = []
async def cb_at_start(hass):
async def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)
@ -284,7 +284,7 @@ async def test_cancelling_at_started_when_starting(hass: HomeAssistant) -> None:
calls = []
@callback
def cb_at_start(hass):
def cb_at_start(hass: HomeAssistant) -> None:
"""Home Assistant is started."""
calls.append(1)