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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user