Fix flaky telegram_bot test timeout in CI (#170837)

This commit is contained in:
Paulus Schoutsen
2026-05-15 20:28:05 +02:00
committed by GitHub
parent bdd6b34055
commit eee9449e6b
+2 -4
View File
@@ -1,6 +1,6 @@
"""Tests for the telegram_bot integration."""
from collections.abc import AsyncGenerator, Generator
from collections.abc import Generator
from datetime import datetime
from typing import Any
from unittest.mock import AsyncMock, patch
@@ -373,13 +373,11 @@ async def webhook_bot(
mock_register_webhook: None,
mock_external_calls: None,
mock_generate_secret_token: str,
) -> AsyncGenerator[None]:
) -> None:
"""Fixture for setting up a webhook telegram bot."""
mock_webhooks_config_entry.add_to_hass(hass)
await hass.config_entries.async_setup(mock_webhooks_config_entry.entry_id)
await hass.async_block_till_done()
yield
await hass.async_stop()
@pytest.fixture