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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user