Import Generator from typing_extensions (4) (#118992)

This commit is contained in:
Marc Mueller 2024-06-06 17:41:37 +02:00 committed by GitHub
parent 59e178df3b
commit 837ee7c4fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
83 changed files with 193 additions and 192 deletions

View file

@ -1,10 +1,10 @@
"""Fixtures for Plex tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
import requests_mock
from typing_extensions import Generator
from homeassistant.components.plex.const import DOMAIN, PLEX_SERVER_CONFIG, SERVERS
from homeassistant.const import CONF_URL
@ -22,7 +22,7 @@ def plex_server_url(entry):
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
def mock_setup_entry() -> Generator[AsyncMock]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.plex.async_setup_entry", return_value=True