Update Spotify state after mutation (#129607)

This commit is contained in:
Joost Lekkerkerker
2024-11-04 15:01:37 +01:00
committed by GitHub
parent 41a81cbf15
commit 02750452df
2 changed files with 34 additions and 2 deletions
+7
View File
@@ -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."""