Import Generator from typing_extensions (4) (#118992)
This commit is contained in:
parent
59e178df3b
commit
837ee7c4fb
83 changed files with 193 additions and 192 deletions
|
@ -1,10 +1,10 @@
|
|||
"""Test the SFR Box setup process."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
from sfrbox_api.exceptions import SFRBoxAuthenticationError, SFRBoxError
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.components.sfr_box.const import DOMAIN
|
||||
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
||||
|
@ -12,7 +12,7 @@ from homeassistant.core import HomeAssistant
|
|||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def override_platforms() -> Generator[None, None, None]:
|
||||
def override_platforms() -> Generator[None]:
|
||||
"""Override PLATFORMS."""
|
||||
with patch("homeassistant.components.sfr_box.PLATFORMS", []):
|
||||
yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue