squeezebox Better result for testing (#144622)

This commit is contained in:
Phill (pssc) 2025-05-26 20:16:11 +01:00 committed by GitHub
parent 0ab7d46d7c
commit 987af8f7df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -327,6 +327,7 @@ def mock_pysqueezebox_server(
mock_lms.async_status = AsyncMock(
return_value={"uuid": format_mac(uuid), "version": FAKE_VERSION}
)
mock_lms.async_prepared_status = mock_lms.async_status
return mock_lms

View File

@ -831,8 +831,6 @@ async def test_squeezebox_server_discovery(
"""Mock the async_discover function of pysqueezebox."""
return callback(lms_factory(2))
lms.async_prepared_status.return_value = {}
with (
patch(
"homeassistant.components.squeezebox.Server",