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

Remove setup_platform for demo (#100867)

This commit is contained in:
G Johansson
2023-10-15 23:12:41 +02:00
committed by GitHub
parent 24afbf3ae4
commit 3c3f512583
23 changed files with 149 additions and 168 deletions

View File

@@ -13,6 +13,7 @@ from homeassistant.const import (
STATE_OFF,
STATE_PAUSED,
STATE_PLAYING,
Platform,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.aiohttp_client import DATA_CLIENTSESSION
@@ -26,6 +27,11 @@ TEST_ENTITY_ID = "media_player.walkman"
@pytest.fixture(autouse=True)
def autouse_disable_platforms(disable_platforms):
"""Auto use the disable_platforms fixture."""
with patch(
"homeassistant.components.demo.COMPONENTS_WITH_CONFIG_ENTRY_DEMO_PLATFORM",
[Platform.MEDIA_PLAYER],
):
yield
@pytest.fixture(name="mock_media_seek")