Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
27219b6962
commit
6bb4e7d62c
1044 changed files with 24245 additions and 16750 deletions
|
@ -96,21 +96,23 @@ async def test_async_poll_manual_hosts_warnings(
|
|||
await hass.async_block_till_done()
|
||||
manager: SonosDiscoveryManager = hass.data[DATA_SONOS_DISCOVERY_MANAGER]
|
||||
manager.hosts.add("10.10.10.10")
|
||||
with caplog.at_level(logging.DEBUG), patch.object(
|
||||
manager, "_async_handle_discovery_message"
|
||||
), patch(
|
||||
"homeassistant.components.sonos.async_call_later"
|
||||
) as mock_async_call_later, patch(
|
||||
"homeassistant.components.sonos.async_dispatcher_send"
|
||||
), patch(
|
||||
"homeassistant.components.sonos.sync_get_visible_zones",
|
||||
side_effect=[
|
||||
OSError(),
|
||||
OSError(),
|
||||
[],
|
||||
[],
|
||||
OSError(),
|
||||
],
|
||||
with (
|
||||
caplog.at_level(logging.DEBUG),
|
||||
patch.object(manager, "_async_handle_discovery_message"),
|
||||
patch(
|
||||
"homeassistant.components.sonos.async_call_later"
|
||||
) as mock_async_call_later,
|
||||
patch("homeassistant.components.sonos.async_dispatcher_send"),
|
||||
patch(
|
||||
"homeassistant.components.sonos.sync_get_visible_zones",
|
||||
side_effect=[
|
||||
OSError(),
|
||||
OSError(),
|
||||
[],
|
||||
[],
|
||||
OSError(),
|
||||
],
|
||||
),
|
||||
):
|
||||
# First call fails, it should be logged as a WARNING message
|
||||
caplog.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue