1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +00:00

Import Generator from typing_extensions (2) (#118989)

This commit is contained in:
Marc Mueller
2024-06-06 17:24:22 +02:00
committed by GitHub
parent 49c7b1aab9
commit 279483ddb0
96 changed files with 298 additions and 290 deletions

View File

@@ -1,13 +1,13 @@
"""Common fixtures for the duotecno tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
from typing_extensions import Generator
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
def mock_setup_entry() -> Generator[AsyncMock]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.duotecno.async_setup_entry", return_value=True