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