Import Generator from typing_extensions (5) (#118993)
This commit is contained in:
parent
632238a7f9
commit
59e178df3b
55 changed files with 158 additions and 160 deletions
|
@ -1,9 +1,9 @@
|
|||
"""The tests for the Update component."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.components.update import (
|
||||
ATTR_BACKUP,
|
||||
|
@ -767,7 +767,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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue