1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +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,6 +1,6 @@
"""Tests for cloud tts."""
from collections.abc import AsyncGenerator, Callable, Coroutine
from collections.abc import Callable, Coroutine
from copy import deepcopy
from http import HTTPStatus
from typing import Any
@@ -8,6 +8,7 @@ from unittest.mock import AsyncMock, MagicMock, patch
from hass_nabucasa.voice import TTS_VOICES, VoiceError, VoiceTokenError
import pytest
from typing_extensions import AsyncGenerator
import voluptuous as vol
from homeassistant.components.assist_pipeline.pipeline import STORAGE_KEY
@@ -39,7 +40,7 @@ from tests.typing import ClientSessionGenerator
@pytest.fixture(autouse=True)
async def delay_save_fixture() -> AsyncGenerator[None, None]:
async def delay_save_fixture() -> AsyncGenerator[None]:
"""Load the homeassistant integration."""
with patch("homeassistant.helpers.collection.SAVE_DELAY", new=0):
yield