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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -799,6 +799,8 @@ 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",