1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Use asyncio.timeout [core] (#98447)

This commit is contained in:
Marc Mueller
2023-08-15 15:36:05 +02:00
committed by GitHub
parent e2d2ec8817
commit a9ade1f84d
27 changed files with 77 additions and 96 deletions

View File

@@ -1,7 +1,7 @@
"""The tests for the Media group platform."""
import asyncio
from unittest.mock import Mock, patch
import async_timeout
import pytest
from homeassistant.components.group import DOMAIN
@@ -583,7 +583,7 @@ async def test_nested_group(hass: HomeAssistant) -> None:
assert state.attributes.get(ATTR_ENTITY_ID) == ["media_player.group_1"]
# Test controlling the nested group
async with async_timeout.timeout(0.5):
async with asyncio.timeout(0.5):
await hass.services.async_call(
MEDIA_DOMAIN,
SERVICE_TURN_OFF,