mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
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:
committed by
GitHub
parent
27219b6962
commit
6bb4e7d62c
@@ -16,10 +16,13 @@ from tests.common import MockConfigEntry, mock_device_registry
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
"""Disable component setup."""
|
||||
with patch(
|
||||
"homeassistant.components.philips_js.async_setup_entry", return_value=True
|
||||
) as mock_setup_entry, patch(
|
||||
"homeassistant.components.philips_js.async_unload_entry", return_value=True
|
||||
with (
|
||||
patch(
|
||||
"homeassistant.components.philips_js.async_setup_entry", return_value=True
|
||||
) as mock_setup_entry,
|
||||
patch(
|
||||
"homeassistant.components.philips_js.async_unload_entry", return_value=True
|
||||
),
|
||||
):
|
||||
yield mock_setup_entry
|
||||
|
||||
@@ -49,9 +52,12 @@ def mock_tv():
|
||||
tv.ambilight_styles = {}
|
||||
tv.ambilight_cached = {}
|
||||
|
||||
with patch(
|
||||
"homeassistant.components.philips_js.config_flow.PhilipsTV", return_value=tv
|
||||
), patch("homeassistant.components.philips_js.PhilipsTV", return_value=tv):
|
||||
with (
|
||||
patch(
|
||||
"homeassistant.components.philips_js.config_flow.PhilipsTV", return_value=tv
|
||||
),
|
||||
patch("homeassistant.components.philips_js.PhilipsTV", return_value=tv),
|
||||
):
|
||||
yield tv
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user