mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Improve type hints in diagnostics tests (#120391)
This commit is contained in:
parent
f8d5c9144a
commit
46ed76df31
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user