Import Generator from typing_extensions (3) (#118990)
This commit is contained in:
parent
0ecab967dd
commit
33ed4fd862
93 changed files with 258 additions and 257 deletions
|
@ -1,11 +1,11 @@
|
|||
"""Test the Lovelace initialization."""
|
||||
|
||||
from collections.abc import Generator
|
||||
import time
|
||||
from typing import Any
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.components import frontend
|
||||
from homeassistant.components.lovelace import const, dashboard
|
||||
|
@ -17,7 +17,7 @@ from tests.typing import WebSocketGenerator
|
|||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_onboarding_done() -> Generator[MagicMock, None, None]:
|
||||
def mock_onboarding_done() -> Generator[MagicMock]:
|
||||
"""Mock that Home Assistant is currently onboarding.
|
||||
|
||||
Enabled to prevent creating default dashboards during test execution.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue