mirror of
https://github.com/home-assistant/core.git
synced 2026-11-02 11:42:25 -04:00
Update Spotify state after mutation (#129607)
This commit is contained in:
@@ -84,6 +84,13 @@ async def setup_credentials(hass: HomeAssistant) -> None:
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
async def patch_sleep() -> Generator[AsyncMock]:
|
||||
"""Fixture to setup credentials."""
|
||||
with patch("homeassistant.components.spotify.media_player.AFTER_REQUEST_SLEEP", 0):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_spotify() -> Generator[AsyncMock]:
|
||||
"""Mock the Spotify API."""
|
||||
|
||||
Reference in New Issue
Block a user