mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 19:55:10 +02:00
Improve type hints in diagnostics tests (#120391)
This commit is contained in:
@@ -19,7 +19,7 @@ from tests.typing import ClientSessionGenerator, WebSocketGenerator
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
async def mock_diagnostics_integration(hass):
|
async def mock_diagnostics_integration(hass: HomeAssistant) -> None:
|
||||||
"""Mock a diagnostics integration."""
|
"""Mock a diagnostics integration."""
|
||||||
hass.config.components.add("fake_integration")
|
hass.config.components.add("fake_integration")
|
||||||
mock_platform(
|
mock_platform(
|
||||||
|
Reference in New Issue
Block a user