Fix squeezebox test serializing mocks (#144600)

This commit is contained in:
Erik Montnemery
2025-05-10 09:44:55 +02:00
committed by GitHub
parent 35ab2a21d6
commit 45c0a19a68

View File

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