mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Use builtin TimeoutError [a-d] (#109678)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
"""The tests for the analytics ."""
|
||||
import asyncio
|
||||
from typing import Any
|
||||
from unittest.mock import ANY, AsyncMock, Mock, PropertyMock, patch
|
||||
|
||||
@@ -756,7 +755,7 @@ async def test_timeout_while_sending(
|
||||
) -> None:
|
||||
"""Test timeout error while sending analytics."""
|
||||
analytics = Analytics(hass)
|
||||
aioclient_mock.post(ANALYTICS_ENDPOINT_URL_DEV, exc=asyncio.TimeoutError())
|
||||
aioclient_mock.post(ANALYTICS_ENDPOINT_URL_DEV, exc=TimeoutError())
|
||||
|
||||
await analytics.save_preferences({ATTR_BASE: True})
|
||||
with patch(
|
||||
|
||||
Reference in New Issue
Block a user