1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +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,9 +1,9 @@
"""The tests for the Binary sensor component."""
from collections.abc import Generator
from unittest import mock
import pytest
from typing_extensions import Generator
from homeassistant.components import binary_sensor
from homeassistant.config_entries import ConfigEntry, ConfigFlow
@@ -48,7 +48,7 @@ class MockFlow(ConfigFlow):
@pytest.fixture(autouse=True)
def config_flow_fixture(hass: HomeAssistant) -> Generator[None, None, None]:
def config_flow_fixture(hass: HomeAssistant) -> Generator[None]:
"""Mock config flow."""
mock_platform(hass, f"{TEST_DOMAIN}.config_flow")