Import Generator from typing_extensions (5) (#118993)
This commit is contained in:
parent
632238a7f9
commit
59e178df3b
55 changed files with 158 additions and 160 deletions
|
@ -1,9 +1,9 @@
|
|||
"""Common fixtures and objects for the LG webOS integration tests."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.components.webostv.const import LIVE_TV_APP_ID
|
||||
from homeassistant.core import HomeAssistant, ServiceCall
|
||||
|
@ -14,7 +14,7 @@ from tests.common import async_mock_service
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
with patch(
|
||||
"homeassistant.components.webostv.async_setup_entry", return_value=True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue