Import Generator from typing_extensions (5) (#118993)

This commit is contained in:
Marc Mueller 2024-06-06 17:33:27 +02:00 committed by GitHub
parent 632238a7f9
commit 59e178df3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
55 changed files with 158 additions and 160 deletions

View file

@ -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