From 987af8f7df2d027b27f69d49203bac57972703db Mon Sep 17 00:00:00 2001 From: "Phill (pssc)" Date: Mon, 26 May 2025 20:16:11 +0100 Subject: [PATCH] squeezebox Better result for testing (#144622) --- tests/components/squeezebox/conftest.py | 1 + tests/components/squeezebox/test_media_player.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/components/squeezebox/conftest.py b/tests/components/squeezebox/conftest.py index a3adf05f5f0..0108dacb00a 100644 --- a/tests/components/squeezebox/conftest.py +++ b/tests/components/squeezebox/conftest.py @@ -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 diff --git a/tests/components/squeezebox/test_media_player.py b/tests/components/squeezebox/test_media_player.py index f71a7db23ba..1890cde5293 100644 --- a/tests/components/squeezebox/test_media_player.py +++ b/tests/components/squeezebox/test_media_player.py @@ -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",