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,11 +1,11 @@
"""Test the SFR Box diagnostics."""
from collections.abc import Generator
from unittest.mock import patch
import pytest
from sfrbox_api.models import SystemInfo
from syrupy.assertion import SnapshotAssertion
from typing_extensions import Generator
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
@ -19,7 +19,7 @@ pytestmark = pytest.mark.usefixtures(
@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