From 83c77957c1d89c28bd7b29ea97d4e9f1a7459aae Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 27 Feb 2026 21:29:10 +0100 Subject: [PATCH] Add missing mock fixtures to telegram_bot polling init test (#164398) --- tests/components/telegram_bot/test_telegram_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/telegram_bot/test_telegram_bot.py b/tests/components/telegram_bot/test_telegram_bot.py index 610a4a5ae36..87162bc25a7 100644 --- a/tests/components/telegram_bot/test_telegram_bot.py +++ b/tests/components/telegram_bot/test_telegram_bot.py @@ -119,8 +119,10 @@ async def test_webhook_platform_init(hass: HomeAssistant, webhook_bot) -> None: assert hass.services.has_service(DOMAIN, SERVICE_SEND_MESSAGE) is True +@pytest.mark.usefixtures("mock_external_calls", "mock_polling_calls") async def test_polling_platform_init( - hass: HomeAssistant, mock_polling_config_entry: MockConfigEntry + hass: HomeAssistant, + mock_polling_config_entry: MockConfigEntry, ) -> None: """Test initialization of the polling platform.""" mock_polling_config_entry.add_to_hass(hass)