Import Generator from typing_extensions (2) (#118989)
This commit is contained in:
parent
49c7b1aab9
commit
279483ddb0
96 changed files with 298 additions and 290 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Generator
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
|
||||
from freezegun.api import FrozenDateTimeFactory
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.components.folder_watcher.const import DOMAIN
|
||||
from homeassistant.config_entries import SOURCE_USER
|
||||
|
@ -17,7 +17,7 @@ from tests.common import MockConfigEntry
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[None, None, None]:
|
||||
def mock_setup_entry() -> Generator[None]:
|
||||
"""Mock setting up a config entry."""
|
||||
with patch(
|
||||
"homeassistant.components.folder_watcher.async_setup_entry", return_value=True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue