Fix cambridge_audio RuntimeWarning during tests (#129191)

This commit is contained in:
Marc Mueller 2024-10-26 01:03:52 +02:00 committed by GitHub
parent 9f6569d658
commit ababa639b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ def mock_stream_magic_client() -> Generator[AsyncMock]:
)
client.is_connected = Mock(return_value=True)
client.position_last_updated = client.play_state.position
client.unregister_state_update_callbacks = AsyncMock(return_value=True)
client.unregister_state_update_callbacks.return_value = True
yield client