mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
squeezebox Better result for testing (#144622)
This commit is contained in:
parent
0ab7d46d7c
commit
987af8f7df
@ -327,6 +327,7 @@ def mock_pysqueezebox_server(
|
|||||||
mock_lms.async_status = AsyncMock(
|
mock_lms.async_status = AsyncMock(
|
||||||
return_value={"uuid": format_mac(uuid), "version": FAKE_VERSION}
|
return_value={"uuid": format_mac(uuid), "version": FAKE_VERSION}
|
||||||
)
|
)
|
||||||
|
mock_lms.async_prepared_status = mock_lms.async_status
|
||||||
return mock_lms
|
return mock_lms
|
||||||
|
|
||||||
|
|
||||||
|
@ -831,8 +831,6 @@ 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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user