mirror of
https://github.com/home-assistant/core.git
synced 2025-11-07 18:09:31 +00:00
Add missing hass type in tests/helpers (#124039)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
from collections.abc import Callable
|
||||
from types import ModuleType
|
||||
from typing import Any
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import pytest
|
||||
@@ -29,7 +30,9 @@ async def test_process_integration_platforms_with_wait(hass: HomeAssistant) -> N
|
||||
|
||||
processed = []
|
||||
|
||||
async def _process_platform(hass, domain, platform):
|
||||
async def _process_platform(
|
||||
hass: HomeAssistant, domain: str, platform: Any
|
||||
) -> None:
|
||||
"""Process platform."""
|
||||
processed.append((domain, platform))
|
||||
|
||||
@@ -67,7 +70,9 @@ async def test_process_integration_platforms(hass: HomeAssistant) -> None:
|
||||
|
||||
processed = []
|
||||
|
||||
async def _process_platform(hass, domain, platform):
|
||||
async def _process_platform(
|
||||
hass: HomeAssistant, domain: str, platform: Any
|
||||
) -> None:
|
||||
"""Process platform."""
|
||||
processed.append((domain, platform))
|
||||
|
||||
@@ -107,7 +112,9 @@ async def test_process_integration_platforms_import_fails(
|
||||
|
||||
processed = []
|
||||
|
||||
async def _process_platform(hass, domain, platform):
|
||||
async def _process_platform(
|
||||
hass: HomeAssistant, domain: str, platform: Any
|
||||
) -> None:
|
||||
"""Process platform."""
|
||||
processed.append((domain, platform))
|
||||
|
||||
@@ -150,7 +157,9 @@ async def test_process_integration_platforms_import_fails_after_registered(
|
||||
|
||||
processed = []
|
||||
|
||||
async def _process_platform(hass, domain, platform):
|
||||
async def _process_platform(
|
||||
hass: HomeAssistant, domain: str, platform: Any
|
||||
) -> None:
|
||||
"""Process platform."""
|
||||
processed.append((domain, platform))
|
||||
|
||||
@@ -242,7 +251,9 @@ async def test_broken_integration(
|
||||
|
||||
processed = []
|
||||
|
||||
async def _process_platform(hass, domain, platform):
|
||||
async def _process_platform(
|
||||
hass: HomeAssistant, domain: str, platform: Any
|
||||
) -> None:
|
||||
"""Process platform."""
|
||||
processed.append((domain, platform))
|
||||
|
||||
@@ -265,7 +276,9 @@ async def test_process_integration_platforms_no_integrations(
|
||||
|
||||
processed = []
|
||||
|
||||
async def _process_platform(hass, domain, platform):
|
||||
async def _process_platform(
|
||||
hass: HomeAssistant, domain: str, platform: Any
|
||||
) -> None:
|
||||
"""Process platform."""
|
||||
processed.append((domain, platform))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user